final
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user