Skip to content
Advertisement

Connecting to Wifi in micro python hangs

I’m trying to setup a function that interactively gets takes user input and connects to WiFi. I can scan the nearby networks and get a list of SSIDs but once I go to actually connect the program always hangs. I can’t seem to figure out why.

JavaScript

hardware: LOLIN D32 (esp32 based board)

this is the only code on the board so I do not think anything else is interfering with it.

Advertisement

Answer

So in case anyone comes looking for this issue later I have found the issue. Apparently the board was maintaining a connection from earlier even though I was resetting the board. I disconnected from the wifi using this function and then my function worked after I realized I was calling input() more than once like an idiot

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement