From 656f97c0bedd8b7b9c2d0775a5f53f765089e58a Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 13 Jan 2024 11:38:45 +0800 Subject: [PATCH] update --- .idea/lot_manager.iml | 2 +- .idea/misc.xml | 2 +- MQTT.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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