diff --git a/.idea/lot_manager.iml b/.idea/lot_manager.iml index f0c20fd..9e256bc 100644 --- a/.idea/lot_manager.iml +++ b/.idea/lot_manager.iml @@ -2,7 +2,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index 3b08fc9..b9b36bf 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/MQTT.py b/MQTT.py index 9fb360d..5729114 100644 --- a/MQTT.py +++ b/MQTT.py @@ -23,7 +23,7 @@ class MQTTClient: self.username = username self.password = password # 千万不要指定client_id 不然死翘翘 - self.client = mqtt.Client() + self.client = mqtt.Client(client_id="测试") self.client.username_pw_set(self.username, self.password) self.client.on_connect = self.on_connect self.client.on_message = self.on_message