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