From 626c13cde2323fe6d61bd607275f9cb998e5246f Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Thu, 22 Oct 2020 10:06:06 +0200 Subject: [PATCH] Raised torch MQTT publish QoS to 1 (make sure broker received at least 1) --- torch_agent/torch_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch_agent/torch_agent.py b/torch_agent/torch_agent.py index 81a2d2c..98fee34 100755 --- a/torch_agent/torch_agent.py +++ b/torch_agent/torch_agent.py @@ -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()