Raised torch MQTT publish QoS to 1 (make sure broker received at least 1)

This commit is contained in:
B.J. Dweck 2020-10-22 10:06:06 +02:00
parent 09ff9f6e86
commit 626c13cde2

View File

@ -101,7 +101,7 @@ def main():
})
print("Publishing payload: " + payload)
client.publish(mqtt_topic, payload)
client.publish(mqtt_topic, payload, qos=1)
print("Published payload!")
client.disconnect()