I have problems when configuring ESP8266 as AP - I used code from the demo http://bbs.espressif.com/viewtopic.php?f=31&t=227 with small modifications:
- I set mode to softAP only
Code: Select all
wifi_set_opmode(SOFTAP_MODE);
- Instead of loading previous configuration with wifi_softap_get_config(&config); I set all parameters manually
Code: Select all
user_set_softap_config(void) {
struct softap_config config;
os_memset(config.ssid, 0, 32);
os_memset(config.password, 0, 64);
os_memcpy(config.ssid, "ESP8266", 7);
os_memcpy(config.password, "12345678", 8);
config.ssid_len = 0;
config.channel = 1;
config.authmode = AUTH_WPA2_PSK;
config.ssid_hidden = 0;
config.max_connection = 4;
config.beacon_interval = 100;
wifi_softap_set_config(&config);// Set ESP8266 softap config
}
If I set channel to 11 where our AP is running everything working fine.
If I set channel to any other from 1 to 13 I can not connect to ESP8266 AP and I am getting following messages on UART:
Code: Select all
chg_A3:-180
chg_A3:0
chg_A3:-180
chg_A3:0
.... and so on
I'm not sure if the problem is after upgrading to SDK 1.4.0 because till now I've worked in mixed softAP+station and when station is activated it forces softAP channel to our AP channel and then everything working as expected.
Any help will be appreciated!