my program is base on sdk 0.9.5.
this is the log:
WifiJoinAp[136]:ssid:MERCURY_2.4G_8ACF auth:4 passwd:a12345678
scandone
add 0
aid 1
pm open phy_2,type:2 0 0
cnt
beacon timeout
rm mismatch
pm open phy_2,type:2 7 0
pm.c 810
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
this is the code:
wifi_station_disconnect();
ETS_UART_INTR_DISABLE();
if(!wifi_station_set_config(&staConfig))
{
SysLog("wifi_station_set_config fail.");
ETS_UART_INTR_ENABLE();
return 0;
}
ETS_UART_INTR_ENABLE();
if(!wifi_station_connect())
{
SysLog("wifi_station_connect fail");
return 0;
}Statistics: Posted by xyuz — Wed Feb 11, 2015 9:18 pm
]]>