This commit is contained in:
2025-08-26 15:24:05 +02:00
parent 1667ce0079
commit 29cb028c5c

View File

@@ -203,7 +203,7 @@ hm = socket.gethostbyaddr(BACKUP_HOST)
logging.info(_RESTORE)
def send_mqtt_message(topic,msg,qos=0,retain=False):
client2 = mqtt.Client()
client2.username_pw_set(USERNAME, PASSWORD)
client2.username_pw_set("jaydee", "jaydee1")
try:
client2.connect(broker,1883,60)
client2.publish(topic, json.dumps(msg), qos=qos, retain=retain)