Skip to content

Commit

Permalink
fix mqtt reason_code is not an int (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mips2648 committed Mar 31, 2024
1 parent 0c7664e commit fbb29ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TheengsGateway/ble_gateway.py
Expand Up @@ -153,7 +153,7 @@ def on_connect(
self.subscribe(self.configuration["subscribe_topic"])
else:
logger.error(
"Failed to connect to MQTT broker %s:%d reason code: %d",
"Failed to connect to MQTT broker %s:%d reason code: %s",
self.configuration["host"],
self.configuration["port"],
reason_code,
Expand All @@ -174,7 +174,7 @@ def on_disconnect(
logger.info("Disconnected from MQTT broker")
else:
logger.error(
"Disconnected from MQTT broker with reason code = %d", reason_code
"Disconnected from MQTT broker with reason code = %s", reason_code
)

if self.configuration["enable_websocket"]:
Expand Down

0 comments on commit fbb29ea

Please sign in to comment.