Disable webrepl and AP_IF
This commit is contained in:
parent
7ddb19f53a
commit
22e2506dfa
@ -5,9 +5,13 @@
|
|||||||
import gc
|
import gc
|
||||||
import time
|
import time
|
||||||
import network
|
import network
|
||||||
import webrepl
|
# import webrepl
|
||||||
from config import KNOWN_WIFI_AP
|
from config import KNOWN_WIFI_AP
|
||||||
|
|
||||||
|
# Disable AP
|
||||||
|
WLAN = network.WLAN(network.AP_IF)
|
||||||
|
WLAN.active(False)
|
||||||
|
|
||||||
# Connect to one of the known wifi AP
|
# Connect to one of the known wifi AP
|
||||||
WLAN = network.WLAN(network.STA_IF)
|
WLAN = network.WLAN(network.STA_IF)
|
||||||
WLAN.active(True)
|
WLAN.active(True)
|
||||||
@ -33,7 +37,7 @@ for ap in AP_LIST:
|
|||||||
print("Wifi time-out")
|
print("Wifi time-out")
|
||||||
break
|
break
|
||||||
|
|
||||||
webrepl.start()
|
# webrepl.start()
|
||||||
|
|
||||||
print("Boot.py : Done")
|
print("Boot.py : Done")
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
Loading…
Reference in New Issue
Block a user