ESP8266 Developer Zone The Official ESP8266 Forum 2017-03-19T14:03:09+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=3440 2017-03-19T14:03:09+08:00 2017-03-19T14:03:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3440&p=11519#p11519 <![CDATA[Re: Wifi connection messages from ESP]]> Statistics: Posted by Her Mary — Sun Mar 19, 2017 2:03 pm


]]>
2017-03-17T22:22:30+08:00 2017-03-17T22:22:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3440&p=11504#p11504 <![CDATA[Wifi connection messages from ESP]]>
I'm trying to debug an intermittent failure in connecting to a wifi AP. If it succeeds, I would receive:

Code:

scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with SSID, channel 1


If it fails, I would receive:

Code:

scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
state: 5 -> 2 (1a0)
rm 0
state: 2 -> 0 (0)


Can someone explain what do these messages mean? Or is it expected that the wifi_station_connect() function fails 5% of the time on the first try?

Statistics: Posted by Guest — Fri Mar 17, 2017 10:22 pm


]]>