From 47e0661fa9ee0399da7fc6a1a1ff98d2a4b70dee Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 30 Dec 2025 04:17:09 +0100 Subject: [PATCH] Add some debug logging --- rpi/services/mqtt_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpi/services/mqtt_service.py b/rpi/services/mqtt_service.py index 6e226f39..9ccab404 100644 --- a/rpi/services/mqtt_service.py +++ b/rpi/services/mqtt_service.py @@ -67,6 +67,7 @@ class MQTTService: def publish(self, topic: str, data: str, qos: int = 0): try: + print("Trying to publish...") self.connect() payload = { "timestamp": int(time.time()), @@ -90,6 +91,7 @@ class MQTTService: self.client.on_message = on_message self.client.subscribe(topic, qos=qos) + print("Subscribed to " + topic) except Exception as e: print(f"An error occurred while trying to subscribe to {topic} on {self.address} : {e}")