fix: setpoint clamp, thread safety, error handling, real-time kWh counters; cleanup repo
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ class publisher:
|
||||
self.client.connect(broker,port, 60)
|
||||
self.client.loop_start()
|
||||
break
|
||||
except:
|
||||
logger.info("Unable to connect to mqtt")
|
||||
except Exception as e:
|
||||
logger.info("Unable to connect to mqtt: {!r}".format(e))
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user