I observe some strange behavior (possible bug) if use esp_wifi_restore and then on wifi authentication fail and the log shows different output then if ommit esp_wifi_restore, so I'm looking for the source eventaully to trace the root cause of this when I see the logic there and which data structures are involved:
Normal flow (without using esp_wifi_restore before):
I (2344) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1
I (2345) wifi: state: init -> auth (b0)
I (2348) wifi: state: auth -> assoc (0)
I (2351) wifi: state: assoc -> run (10)
I (2352) wifi: connected with XX-XX, channel 6
Bad flow with esp_wifi_restore - connect fails on authentication and going back to init
I (2481) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1
I (2482) wifi: state: init -> auth (b0)
I (3483) wifi: state: auth -> init (2)
I (3483) wifi: n:6 0, o:6 0, ap:255 255, sta:6 0, prof:1
I put already log level on Verbose, but cant get any more information for those steps, and also put some time delay after esp_wifi_restore, but dont see any different effect
Also the documentation for the esp_wifi_set_auto_connect as default = true seems wrong as the template example doesn't work without esp_wifi_connect()
Where can see the source code for esp_wifi_connect and esp_wifi_restore
Who is online
Users browsing this forum: Google [Bot] and 102 guests