Re: Setting the AP Channel ***SOLVED***
Posted: Sun Aug 16, 2015 4:21 pm
I just found out about WebConfig for the ESP8266
Really awesome work...Thank You
I have one question though.
How do you set the AP channel?
My ESP-01 always defaults to channel 11.
It's a very crowded channel in my area.
I tried the following modifications to the ESP_WebConfig.ino:
When the ESP8266 resets, it comes up momentarily on channel 4, the quickly reverts back to channel 11
***PROBLEM SOLVED***
I just discovered that as soon as it connects to the internet through the local WiFi router, It resets the AP channel to be the same as the WiFi Station channel that it is connected to.
Thanks
Really awesome work...Thank You
I have one question though.
How do you set the AP channel?
My ESP-01 always defaults to channel 11.
It's a very crowded channel in my area.
I tried the following modifications to the ESP_WebConfig.ino:
Code: Select all
#define ACCESS_POINT_NAME "ESP002AP"
#define ACCESS_POINT_PASSWORD "12345678"
#define ACCESS_POINT_CHANNEL 4
...
if (AdminEnabled)
{
WiFi.mode(WIFI_AP_STA);
WiFi.softAP( ACCESS_POINT_NAME , ACCESS_POINT_PASSWORD, ACCESS_POINT_CHANNEL);
When the ESP8266 resets, it comes up momentarily on channel 4, the quickly reverts back to channel 11
***PROBLEM SOLVED***
I just discovered that as soon as it connects to the internet through the local WiFi router, It resets the AP channel to be the same as the WiFi Station channel that it is connected to.
Thanks