mirror of
https://github.com/nikdoof/aaisp2mqtt.git
synced 2025-12-14 02:02:19 +00:00
publish with a qos of 1
This commit is contained in:
@@ -107,7 +107,7 @@ def publish_per_circuit(client, circuit, mqtt_topic_prefix):
|
||||
return
|
||||
|
||||
def publish(client, topic, payload):
|
||||
result = client.publish(topic=topic, payload=payload)
|
||||
result = client.publish(topic=topic, payload=payload, qos=1)
|
||||
if result[0] != 0:
|
||||
LOG.fail("MQTT publish failure: %s %s" , topic, payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user