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()