mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-24 03:12:33 +10:00
fix MQTT publish error
This commit is contained in:
@@ -58,8 +58,10 @@ class export_mqtt(object):
|
||||
logging.info(f"MQTT: Server Disconnected code: {rc}")
|
||||
|
||||
def on_publish(self, client, userdata, mid):
|
||||
if mid:
|
||||
try:
|
||||
self.mqtt_queue.remove(mid)
|
||||
except Exception as err:
|
||||
pass
|
||||
logging.info(f"MQTT: Message {mid} Published")
|
||||
|
||||
def cleanName(self, name):
|
||||
|
||||
Reference in New Issue
Block a user