# Determining WiFi channel connected to

**URL:** <https://community.particle.io/t/determining-wifi-channel-connected-to/69796>\
**Category:** Firmware\
**Created:** [July 7, 2025, 4:23pm UTC](https://community.particle.io/t/determining-wifi-channel-connected-to/69796 "2025-07-07T16:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![armor](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/armor/32/18398_2.png) [@armor](https://community.particle.io/u/armor)\
**Post date:** [July 7, 2025, 4:23pm UTC](https://community.particle.io/t/determining-wifi-channel-connected-to/69796/1 "2025-07-07T16:23:37Z")

</div>

Is there a function (or workaround) that enables the WAP channel connected to be determined like SSID using WiFi.SSID()?

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [July 7, 2025, 4:42pm UTC](https://community.particle.io/t/determining-wifi-channel-connected-to/69796/2 "2025-07-07T16:42:28Z")

</div>

No, but you can do a WiFi.scan(). The scan results include the BSSID, channel, SSID, and RSSI. Just find the BSSID that you are connected to in the results.

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [July 9, 2025, 1:17pm UTC](https://community.particle.io/t/determining-wifi-channel-connected-to/69796/3 "2025-07-09T13:17:13Z")

</div>

I created a library that can get the channel number and convenience methods to determine if it's 2.4 GHz or 5 GHz. It's hacky and ridiculous (it determines the current BSSID, then does a WiFi.scan() to find the channel number corresponding to that BSSID) but it seems to work.

> **[GitHub - rickkas7/WiFiChannelRK: Library to expose Wi-Fi channel information](https://github.com/rickkas7/WiFiChannelRK)**
>
> Library to expose Wi-Fi channel information

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [August 8, 2025, 11:18pm UTC](https://community.particle.io/t/determining-wifi-channel-connected-to/69796/4 "2025-08-08T23:18:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
