Wifi connection messages from ESP

rith87
Posts: 32
Joined: Tue Mar 03, 2015 6:04 pm

Wifi connection messages from ESP

Postby rith87 » Fri Mar 17, 2017 10:22 pm

Hello,

I'm trying to debug an intermittent failure in connecting to a wifi AP. If it succeeds, I would receive:

Code: Select all

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: Select all

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?

Her Majesty
Posts: 61
Joined: Mon Oct 27, 2014 11:09 am

Re: Wifi connection messages from ESP

Postby Her Majesty » Sun Mar 19, 2017 2:03 pm

Maybe you can try to debug it with API: wifi_set_event_handler_cb.

Who is online

Users browsing this forum: No registered users and 3 guests