interpreting wifi status #12106
Replies: 3 comments 3 replies
-
To get rid of the `wifi internal error do a EN or power on reset. Or a try/except around the connect and in the except put: sta.active(False) # important
sta.disconnect() Also, in the try/except catch any errors to a txt file that you can look at later. |
Beta Was this translation helpful? Give feedback.
-
An initial call to @davefes: I have never seen @kjm1102: With your code, |
Beta Was this translation helpful? Give feedback.
-
Please check if your ESP32 board is otherwise working. Check it with some other code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a little dummy AP that has no internet access that I use to test code robustness (in terms of lack of internet connectivity) with. My PC is happy to connect to it when I'm working in python. But for some reason my upython esp32 board won't. I thought I'd try to find out why
If I try again without resetting the esp32 I get a 'wifi internal error', so the board is not happy. But why? I can't seem to find anything at https://docs.micropython.org/en/latest/library/network.WLAN.html that will help me decode the mysterious 1001. A successful connection status is 1010, so I figure the 3rd bit is maybe STAT_GOT_IP – connection successful, but I'd kill to find out what bit 4 means!
Beta Was this translation helpful? Give feedback.
All reactions