I have tried to change WiFi AP mode channel using following code but not found any effect as still WiFi AP mode is running on default channel 1. I am working on ESP32-idf RTOS SDK.
Code: Select all
wifi_config_t ap_config = {
.ap = {
.channel = 14
}
ESP_ERROR_CHECK( esp_wifi_set_config(WIFI_IF_AP, &ap_config) );
ESP_ERROR_CHECK( esp_wifi_start() );
ESP_ERROR_CHECK( esp_wifi_connect() );
Please let me know if any other configurations or settings required for that