I am using the latest FreeRTOS and I cannot make the esp8266 work as softAP.
This is the code I am using inside the user_init:
Code: Select all
//start soft AP mode.
struct softap_config softapconfig;
wifi_set_opmode(SOFTAP_MODE);
wifi_softap_get_config(&softapconfig);
memset(softapconfig.ssid, 0, 32);
memset(softapconfig.password, 0, 64);
sprintf(softapconfig.ssid, "ESP8266");
sprintf(softapconfig.password, "12345678");
softapconfig.authmode = AUTH_WPA_WPA2_PSK;
softapconfig.ssid_len = 0;
softapconfig.channel = 1;
softapconfig.max_connection = 4;
softapconfig.ssid_hidden = 0;
softapconfig.beacon_interval = 400;
wifi_softap_set_config(&softapconfig);
I have tried all the different variations of the authmode, different values for channel and beacon interval.
In my smartphone, I cannot see the ESP8266.
In the terminal, I see this:
chksum 0x9d
load 0x3ffe8000, len 2508, room 0
tail 12
chksum 0xba
ho 0 tail 12 room 4
load 0x3ffe89d0, len 1200, room 12
tail 4
chksum 0xd1
And then nothing.
Any help?
Thanks.