uHodor/esp8266/boot.py

20 lines
387 B
Python
Raw Permalink Normal View History

2018-02-16 01:03:02 +01:00
def do_connect():
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect("MIPS", "importthis")
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())
do_connect()
import gc
import webrepl
webrepl.start()
gc.collect()