esp32-lightbar/src/boot.py

13 lines
372 B
Python
Raw Normal View History

# boot.py -- This file is executed on every boot (including wake-boot from deepsleep)
2021-12-28 22:10:27 +01:00
import uasyncio
import webrepl
2021-12-28 22:10:27 +01:00
from lightbar import wlan_manager
# Asynchronously connect to WLAN as defined in wlan_cfg.py
uasyncio.create_task(wlan_manager.connect_async())
2021-12-28 22:10:27 +01:00
# Start WebREPL on default port 8266 with password defined in webrepl_cfg.PASS
webrepl.start()