Init
This commit is contained in:
19
firmware/boot.py
Normal file
19
firmware/boot.py
Normal file
@@ -0,0 +1,19 @@
|
||||
def do_connect():
|
||||
import network
|
||||
wlan = network.WLAN(network.STA_IF)
|
||||
wlan.active(True)
|
||||
if not wlan.isconnected():
|
||||
print('connecting to network...')
|
||||
wlan.connect('nubbe', 'MFhBB!MThAuE!')
|
||||
while not wlan.isconnected():
|
||||
pass
|
||||
print('network config:', wlan.ifconfig())
|
||||
|
||||
do_connect()
|
||||
import gc
|
||||
import webrepl
|
||||
|
||||
webrepl.start()
|
||||
|
||||
gc.collect()
|
||||
|
||||
Reference in New Issue
Block a user