MQTT debug

This commit is contained in:
2024-10-20 14:04:13 +11:00
parent 72c69be09f
commit ca8ff5c58d
+3 -1
View File
@@ -109,7 +109,9 @@ def assess_latest_image():
debug_print(f"Error retrieving events: {e}") debug_print(f"Error retrieving events: {e}")
# MQTT setup # 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: if MQTT_USERNAME and MQTT_PASSWORD:
client.username_pw_set(MQTT_USERNAME, MQTT_PASSWORD) client.username_pw_set(MQTT_USERNAME, MQTT_PASSWORD)