Search found 1 match
- Fri Jul 08, 2022 3:46 pm
- Forum: Pyboard D-series
- Topic: WLAN not connecting on first attempt
- Replies: 10
- Views: 57457
Re: WLAN not connecting on first attempt
I was also having this issue and it seems that the .connect method is actually not blocking. So you have to wait after .connect until your connected. This worked for me: import network import time wlan = network.WLAN(network.STA_IF) def do_connect(ssid: str, key: str): wlan.active(True) # activate t...