This commit is contained in:
Jonas Zeunert
2024-09-19 21:41:45 +02:00
parent b53eb6a2f6
commit 345e3133e3
2 changed files with 23 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
from time import sleep
def do_connect():
import network
wlan = network.WLAN(network.STA_IF)
@@ -6,14 +7,10 @@ def do_connect():
print('connecting to network...')
wlan.connect('nubbe', 'MFhBB!MThAuE!')
while not wlan.isconnected():
sleep(0.1)
print("Connecting")
pass
print('network config:', wlan.ifconfig())
do_connect()
import gc
import webrepl
webrepl.start()
gc.collect()