Remove debug statements

This commit is contained in:
2025-12-30 10:44:00 +01:00
parent 83517d0439
commit e01a739590

View File

@@ -46,7 +46,6 @@ class MQTTService:
def connect(self):
if not self._connected:
print(f"Connecting to {self.address}...")
self.client.connect(self.address, self.port)
self.client.loop_start()
timeout = 5
@@ -56,8 +55,6 @@ class MQTTService:
if not self._connected:
raise ConnectionError(f"Cannot connect to MQTT broker at {self.address}:{self.port}")
print(f"Successfully connected to {self.address}")
else :
print(f"Already connected to {self.address}...")
def disconnect(self):
if self._connected:
@@ -84,7 +81,6 @@ class MQTTService:
self._subscriptions[topic] = handler
def on_message(client, userdata, msg):
print(f"Received {msg.payload} on {msg.topic} from {client}")
for sub_topic, h in self._subscriptions.items():
if mqtt.topic_matches_sub(sub_topic, msg.topic):
h(msg.topic, msg.payload.decode())