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"
|
home = b"Hart's"
|
||||||
|
|
||||||
ff=wlan.scan()
|
ff=wlan.scan()
|
||||||
connecting=true
|
connecting=True
|
||||||
for i in ff:
|
for i in ff:
|
||||||
print(i)
|
print(i)
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ elif matches(ff,home):
|
|||||||
wlan.connect(home,'D187wn644GeH')
|
wlan.connect(home,'D187wn644GeH')
|
||||||
else:
|
else:
|
||||||
print('not connecting')
|
print('not connecting')
|
||||||
connecting = false
|
connecting = False
|
||||||
while connecting and not wlan.isconnected():
|
while connecting and not wlan.isconnected():
|
||||||
machine.idle()
|
machine.idle()
|
||||||
print('WLAN connection succeeded')
|
print('WLAN connection succeeded')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user