PikWay
PikWay
Code is just like yours: import time,network def connectWLAN(): sta=network.WLAN(network.STA_IF) sta.connect('foo','bar') while not sta.isconnected(): time.sleep(1) print(sta.ifconfig()) and after executing connectWLAN() it starts to write to serial console: I (118715) wifi:...
Checked dpgeorge fix, but seems like except to logger it prints "no AP found" >>> sta.connect('foo','bar') >>> no AP found no AP found no AP found no AP found >>>...
I've already made workaround. First scan, then check is essid I want to connect in list and if yes - connect.