WS2812 troubleshooting

This commit is contained in:
2026-04-12 20:47:02 +02:00
parent 4b096de052
commit cf493a1f26

View File

@@ -250,6 +250,7 @@ def make_gauge_topics(prefix, gauge_id):
print("DEBUG: after duplicate function, about to define _DEVICE")
print("DEBUG: about to define _DEVICE dict")
_DEVICE = {
"identifiers": [MQTT_CLIENT_ID],
"name": DEVICE_NAME,
@@ -257,15 +258,18 @@ _DEVICE = {
"manufacturer": DEVICE_MFR,
"suggested_area": DEVICE_AREA,
}
print("DEBUG: _DEVICE defined")
# ---------------------------------------------------------------------------
# WiFi
# ---------------------------------------------------------------------------
print("DEBUG: about to set wifi globals")
_wifi_reconnect_delay_s = 5
_wifi_check_interval_ms = 30000
_last_wifi_check = 0
_wifi_sta = None
print("DEBUG: wifi globals set")
def connect_wifi(ssid, password, timeout_s=15):