should work so far
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import paho.mqtt.client as mqtt
|
||||
from loguru import logger
|
||||
import uuid
|
||||
import threading
|
||||
import ssl
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,9 @@ class AbstractMqttPublisher(threading.Thread):
|
||||
|
||||
self.config = config
|
||||
|
||||
self.client = mqtt.Client(userdata=self)
|
||||
client_id = f"pv-controller-{uuid.uuid4()}"
|
||||
logger.info(f"mqtt client id: {client_id}")
|
||||
self.client = mqtt.Client(client_id=client_id, userdata=self)
|
||||
|
||||
# consider this flag in the localLoop
|
||||
self.killBill = False
|
||||
|
||||
Reference in New Issue
Block a user