This commit is contained in:
2025-08-26 12:21:53 +02:00
parent 57ae295d22
commit cb2e06684b

View File

@@ -203,6 +203,7 @@ def send_mqtt_message(topic,msg):
client.connect(broker,1883,60)
client.publish(topic, json.dumps(msg))
client.disconnect()
logging.info(f"Message sent {topic}, {msg}")
except ValueError as e:
logging.error("Failed to send")
print("Failed to send")