From 9f669714b2387b367c4d6074b4c0bc9982f66f2d Mon Sep 17 00:00:00 2001 From: Easy Date: Fri, 18 Feb 2022 23:19:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9client=20name=E5=86=B2?= =?UTF-8?q?=E7=AA=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iot/deeresp/deeresp.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iot/deeresp/deeresp.ino b/iot/deeresp/deeresp.ino index c6d8d7d..16004f6 100644 --- a/iot/deeresp/deeresp.ino +++ b/iot/deeresp/deeresp.ino @@ -5,10 +5,10 @@ #define MQTT_PASSWORD "MQTT密码" #define MQTT_TOPIC "PushDeer pushkey" // 这里填PushDeer的Key #define MQTT_PORT 1883 +#define MQTT_CLIENT_NAME "DeerEsp" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧 // ====== 以下不用修改 =============== -#define MQTT_CLIENT_NAME "DeerEsp" #define DOWNLOADED_IMG "/download.jpg" @@ -45,6 +45,7 @@ TFT_eSPI tft = TFT_eSPI(); void setup() { Serial.begin(115200); mclient.enableDebuggingMessages(); + tft.begin(); tft.fillScreen(TFT_BLACK);