MQTT debug
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user