update
This commit is contained in:
parent
52ce400a4c
commit
8804a5e616
1
MQTT.py
1
MQTT.py
|
@ -22,7 +22,6 @@ class MQTTClient:
|
||||||
self.topic = topic
|
self.topic = topic
|
||||||
self.username = username
|
self.username = username
|
||||||
self.password = password
|
self.password = password
|
||||||
# 千万不要指定client_id 不然死翘翘
|
|
||||||
self.client = mqtt.Client(client_id=subscribe_topic)
|
self.client = mqtt.Client(client_id=subscribe_topic)
|
||||||
self.client.username_pw_set(self.username, self.password)
|
self.client.username_pw_set(self.username, self.password)
|
||||||
self.client.on_connect = self.on_connect
|
self.client.on_connect = self.on_connect
|
||||||
|
|
Loading…
Reference in New Issue