Connect to wifi asynchronously and use LED to indicate wifi status

This commit is contained in:
Lexi / Zoe 2024-01-26 19:01:46 +01:00
parent aa0a04b76f
commit 9136fb5c97
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
3 changed files with 35 additions and 5 deletions

View file

@ -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()