From ca8ff5c58d6a0ac6c30517a59d8c99f0eaaa31b3 Mon Sep 17 00:00:00 2001 From: Marcus Brown Date: Sun, 20 Oct 2024 14:04:13 +1100 Subject: [PATCH] MQTT debug --- dayglo_detector/dayglo_detector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dayglo_detector/dayglo_detector.py b/dayglo_detector/dayglo_detector.py index ae9d467..ab4b049 100644 --- a/dayglo_detector/dayglo_detector.py +++ b/dayglo_detector/dayglo_detector.py @@ -109,7 +109,9 @@ def assess_latest_image(): debug_print(f"Error retrieving events: {e}") # MQTT setup -client = mqtt.Client() +#client = mqtt.Client() +client = mqtt.Client(protocol=mqtt.MQTTv5) +#client = mqtt.Client(protocol=mqtt.MQTTv311) if MQTT_USERNAME and MQTT_PASSWORD: client.username_pw_set(MQTT_USERNAME, MQTT_PASSWORD)