This commit is contained in:
Jonas Zeunert
2024-08-16 21:51:44 +02:00
parent eb5336c0dc
commit adeb5c5ec7
3 changed files with 19 additions and 0 deletions

19
firmware/boot.py Normal file
View 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()