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)