Can't connect WiFi after restart
Posted: Wed May 08, 2019 8:56 am
Hello i just encounter this problem. I succesfully connect to WiFi AP. But after i Reset Board i cannot connect to Wifi. It doesent matter if i reset board with button, machine.reset() or sys.exit(). Reflashing firmware doesn't help, but after some time not using the board I can coonect again until i reset.
I first thought i have bad board, but I have this behaviour on all of my ESP32 boards.
I using lastest FW from GIT with added uAsyncio. I also try prebuild FW 20181023 but it's still same.
i try to connect to different AP but this doesent help either.
All this i was trying by using simple code in ESP REPL:
import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('SSID', 'PASS')
In REPL terminal, I see mostly:
Reason: 2 - Auth_EXPIRE
Reason: 8 - ASSOC_LEAVE
Reason: 14 - 4WAY_HANDSHAKE_TIMEOUT
and nearly always
Reason: 201 - No AP Found
WiFi states when i'm trying to connect:
I (57236) wifi: state: init -> auth (b0)
I (57236) wifi: state: auth -> assoc (0)
I (57256) wifi: state: assoc -> run (10)
I (63356) wifi: state: run -> init (fc0)
I (63356) wifi: new:<10,0>, old:<10,0>, ap:<255,255>, sta:<10,0>, prof:1
I (63366) wifi: STA_DISCONNECTED, reason:15
I (65776) wifi: STA_DISCONNECTED, reason:201
no AP found
It's my first project in Micropython and first experience with ESP board. So i don't know if i try all possible options, so if somebody know what to do i'll be glad.
Thanks
I first thought i have bad board, but I have this behaviour on all of my ESP32 boards.
I using lastest FW from GIT with added uAsyncio. I also try prebuild FW 20181023 but it's still same.
i try to connect to different AP but this doesent help either.
All this i was trying by using simple code in ESP REPL:
import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('SSID', 'PASS')
In REPL terminal, I see mostly:
Reason: 2 - Auth_EXPIRE
Reason: 8 - ASSOC_LEAVE
Reason: 14 - 4WAY_HANDSHAKE_TIMEOUT
and nearly always
Reason: 201 - No AP Found
WiFi states when i'm trying to connect:
I (57236) wifi: state: init -> auth (b0)
I (57236) wifi: state: auth -> assoc (0)
I (57256) wifi: state: assoc -> run (10)
I (63356) wifi: state: run -> init (fc0)
I (63356) wifi: new:<10,0>, old:<10,0>, ap:<255,255>, sta:<10,0>, prof:1
I (63366) wifi: STA_DISCONNECTED, reason:15
I (65776) wifi: STA_DISCONNECTED, reason:201
no AP found
It's my first project in Micropython and first experience with ESP board. So i don't know if i try all possible options, so if somebody know what to do i'll be glad.
Thanks