Connect to wifi asynchronously and use LED to indicate wifi status
This commit is contained in:
parent
aa0a04b76f
commit
9136fb5c97
3 changed files with 35 additions and 5 deletions
|
|
@ -1,10 +1,12 @@
|
|||
# boot.py -- This file is executed on every boot (including wake-boot from deepsleep)
|
||||
|
||||
from lightbar import wlan_manager
|
||||
import uasyncio
|
||||
import webrepl
|
||||
|
||||
# Connect to WLAN as defined in wlan_cfg.py
|
||||
wlan_manager.connect()
|
||||
from lightbar import wlan_manager
|
||||
|
||||
# Asynchronously connect to WLAN as defined in wlan_cfg.py
|
||||
uasyncio.create_task(wlan_manager.connect_async())
|
||||
|
||||
# Start WebREPL on default port 8266 with password defined in webrepl_cfg.PASS
|
||||
webrepl.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue