2019-04-11 06:42:32 +00:00
|
|
|
import network
|
|
|
|
import time
|
|
|
|
|
|
|
|
# connect to local wifi network
|
|
|
|
sta_if = network.WLAN(network.STA_IF)
|
2019-04-15 21:52:41 +00:00
|
|
|
sta_if.active(False)
|
|
|
|
#sta_if.active(True)
|
2019-04-11 06:42:32 +00:00
|
|
|
# TODO: edit this line
|
2019-04-15 21:52:41 +00:00
|
|
|
#sta_if.connect("<SSID>", "<PASSWORD>")
|
|
|
|
#sta_if.ifconfig()
|
2019-04-11 06:42:32 +00:00
|
|
|
|
|
|
|
# start terminal over wifi
|
|
|
|
time.sleep(5) # wait for wifi to connect
|
|
|
|
import webrepl
|
|
|
|
webrepl.start()
|