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)