This commit is contained in:
2025-08-26 15:30:19 +02:00
parent 781a74ba20
commit 66644b6bb9

View File

@@ -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}")