Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iture committed Nov 6, 2022
1 parent cd51a76 commit 6e1d6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MQTTClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def __init__(self, messageQ, commandQ, config) -> None:
def connect (self,config) -> None:
try:
self._mqttConn.connect(config['mqtt_host'], port=config['mqtt_port'], keepalive=120)
except:
self.logger.error("problem with connect")
except Exception as e:
self.logger.error("problem with connect: %s" % e)
def close(self) -> None:
self.logger.info("Closing connection")
self._mqttConn.disconnect()
Expand Down

0 comments on commit 6e1d6f3

Please sign in to comment.