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

master
Simon Pirkelmann 2019-04-15 23:52:41 +02:00
parent 5e7f228869
commit 70f3eb80ab
1 changed files with 4 additions and 3 deletions

View File

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