fix: running logic

This commit is contained in:
wznln
2025-05-01 17:42:46 +08:00
parent 9eb271f64e
commit 2b428080e7
7 changed files with 25 additions and 17 deletions

View File

@@ -35,7 +35,8 @@ class MQTTClient:
self.client.on_disconnect = self._on_disconnect
def _on_log(self, client, userdata, level, buf):
logger.info(f"[MQTT] log: {buf}")
# logger.info(f"[MQTT] log: {buf}")
pass
def _on_connect(self, client, userdata, flags, rc, properties=None):
logger.info("[MQTT] Connected with result code " + str(rc))