This commit is contained in:
2025-06-29 12:35:39 +02:00
parent 348e007f5e
commit 7fe7aabd53

View File

@@ -21,7 +21,7 @@ class mqtt_sender():
self.port = port
self.client_id = "dasdasdasd333"
try:
self.client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, client_id)
self.client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1, self.client_id)
except:
self.client = mqtt_client.Client()
self.client.username_pw_set(self.name, self.password)