ESP32 Forum
ESP32 Official Forum
http://forum.esp32.com/
Method to retrieve current wifi AP channel
http://forum.esp32.com/viewtopic.php?f=13&t=23672
Page
1
of
1
Method to retrieve current wifi AP channel
Posted:
Fri Oct 08, 2021 1:20 pm
by
rwel59
I need to get the channel of the connected AP. Is this info available without disconnecting then scanning?
Re: Method to retrieve current wifi AP channel
Posted:
Fri Oct 08, 2021 10:28 pm
by
rwel59
found it. esp_err_t esp_wifi_get_channel(uint8_t *primary, wifi_second_chan_t *second)