LoPY WIFI connections keeps reconnecting
this boot.py code works on the WiPy but results in a reconnect loop on LoPy.
from network import WLAN
wlan = WLAN(mode=WLAN.STA)
wlan.connect("myssid", auth=(WLAN.WPA2, 'password'), timeout=5000)
print("Connecting to WLAN")
while not wlan.isconnected():
On LoPy the following is printed repeatedly to the console:
state: 0 -> 2 (b0)
Can you help please?
That should work on the LoPy too... What software version are you running so that I can try to reproduce it? (os.uname())