2022-11-04 20:28:35 +01:00
|
|
|
# boot.py -- This file is executed on every boot (including wake-boot from deepsleep)
|
2021-12-28 22:10:27 +01:00
|
|
|
|
2024-01-26 19:01:46 +01:00
|
|
|
import uasyncio
|
2022-11-04 20:28:35 +01:00
|
|
|
import webrepl
|
2021-12-28 22:10:27 +01:00
|
|
|
|
2024-01-26 19:01:46 +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
|
|
|
|
2022-11-04 20:28:35 +01:00
|
|
|
# Start WebREPL on default port 8266 with password defined in webrepl_cfg.PASS
|
|
|
|
|
webrepl.start()
|