should work so far

This commit is contained in:
2025-12-05 11:54:53 +01:00
parent 6faed5441c
commit 3f13a5adfa
7 changed files with 169 additions and 46 deletions

View File

@@ -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