mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 20:20:11 +02:00
build
This commit is contained in:
@@ -203,7 +203,7 @@ hm = socket.gethostbyaddr(BACKUP_HOST)
|
|||||||
logging.info(_RESTORE)
|
logging.info(_RESTORE)
|
||||||
def send_mqtt_message(topic,msg,qos=0,retain=False):
|
def send_mqtt_message(topic,msg,qos=0,retain=False):
|
||||||
client2 = mqtt.Client()
|
client2 = mqtt.Client()
|
||||||
client2.username_pw_set(USERNAME, PASSWORD)
|
client2.username_pw_set("jaydee", "jaydee1")
|
||||||
try:
|
try:
|
||||||
client2.connect(broker,1883,60)
|
client2.connect(broker,1883,60)
|
||||||
client2.publish(topic, json.dumps(msg), qos=qos, retain=retain)
|
client2.publish(topic, json.dumps(msg), qos=qos, retain=retain)
|
||||||
|
Reference in New Issue
Block a user