disabled automatic connection to local wifi network because this makes access point connection unreliable

This commit is contained in:
Simon Pirkelmann 2019-04-15 23:52:41 +02:00
parent 5e7f228869
commit 70f3eb80ab

View File

@ -3,10 +3,11 @@ import time
# connect to local wifi network # connect to local wifi network
sta_if = network.WLAN(network.STA_IF) sta_if = network.WLAN(network.STA_IF)
sta_if.active(True) sta_if.active(False)
#sta_if.active(True)
# TODO: edit this line # TODO: edit this line
sta_if.connect("<SSID>", "<PASSWORD>") #sta_if.connect("<SSID>", "<PASSWORD>")
sta_if.ifconfig() #sta_if.ifconfig()
# start terminal over wifi # start terminal over wifi
time.sleep(5) # wait for wifi to connect time.sleep(5) # wait for wifi to connect