wlan fixed
This commit is contained in:
parent
ba4a397e5c
commit
34072ddffa
4
boot.py
4
boot.py
@ -16,7 +16,7 @@ iphone = b'Hart\xe2\x80\x99s iPhone'
|
||||
home = b"Hart's"
|
||||
|
||||
ff=wlan.scan()
|
||||
connecting=true
|
||||
connecting=True
|
||||
for i in ff:
|
||||
print(i)
|
||||
|
||||
@ -34,7 +34,7 @@ elif matches(ff,home):
|
||||
wlan.connect(home,'D187wn644GeH')
|
||||
else:
|
||||
print('not connecting')
|
||||
connecting = false
|
||||
connecting = False
|
||||
while connecting and not wlan.isconnected():
|
||||
machine.idle()
|
||||
print('WLAN connection succeeded')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user