Raised torch MQTT publish QoS to 1 (make sure broker received at least 1)
This commit is contained in:
parent
09ff9f6e86
commit
626c13cde2
|
@ -101,7 +101,7 @@ def main():
|
||||||
})
|
})
|
||||||
|
|
||||||
print("Publishing payload: " + payload)
|
print("Publishing payload: " + payload)
|
||||||
client.publish(mqtt_topic, payload)
|
client.publish(mqtt_topic, payload, qos=1)
|
||||||
print("Published payload!")
|
print("Published payload!")
|
||||||
|
|
||||||
client.disconnect()
|
client.disconnect()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user