From cd51a76c12a635229434790b4487409e4133325f Mon Sep 17 00:00:00 2001 From: Marcin Kaptur Date: Sun, 6 Nov 2022 13:42:51 +0100 Subject: [PATCH] . --- MQTTClient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MQTTClient.py b/MQTTClient.py index 046874c..114c9ce 100644 --- a/MQTTClient.py +++ b/MQTTClient.py @@ -42,11 +42,11 @@ def __init__(self, messageQ, commandQ, config) -> None: self.connect(self.config) - def connect (self,config): + def connect (self,config) -> None: try: - result = self._mqttConn.connect(config['mqtt_host'], port=config['mqtt_port'], keepalive=120) + self._mqttConn.connect(config['mqtt_host'], port=config['mqtt_port'], keepalive=120) except: - self.logger.error("problem with connect:%s" % result) + self.logger.error("problem with connect") def close(self) -> None: self.logger.info("Closing connection") self._mqttConn.disconnect()