mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 04:10:10 +02:00
build
This commit is contained in:
@@ -205,7 +205,7 @@ def send_mqtt_message(topic,msg,qos=0,retain=False):
|
||||
client2 = mqtt.Client()
|
||||
client2.username_pw_set("jaydee", "jaydee1")
|
||||
try:
|
||||
client2.connect(broker,1883,60)
|
||||
client2.connect("mqtt.home.lan",1883,60)
|
||||
client2.publish(topic, json.dumps(msg), qos=qos, retain=retain)
|
||||
client2.disconnect()
|
||||
logging.info(f"Message sent {topic}, {msg}")
|
||||
|
Reference in New Issue
Block a user