This commit is contained in:
xyj 2024-01-31 16:27:14 +08:00
parent 52ce400a4c
commit 8804a5e616
1 changed files with 0 additions and 1 deletions

View File

@ -22,7 +22,6 @@ class MQTTClient:
self.topic = topic
self.username = username
self.password = password
# 千万不要指定client_id 不然死翘翘
self.client = mqtt.Client(client_id=subscribe_topic)
self.client.username_pw_set(self.username, self.password)
self.client.on_connect = self.on_connect