From f208c5b3149cc9af9147b57b35d35d2d558f8896 Mon Sep 17 00:00:00 2001 From: Easy Date: Sat, 26 Mar 2022 10:53:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0iot=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=E6=97=8B=E8=BD=AC=E8=AE=BE=E7=BD=AE?= 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 42b585c..cadcd31 100644 --- a/iot/deeresp/deeresp.ino +++ b/iot/deeresp/deeresp.ino @@ -1,3 +1,4 @@ +#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧 #define WIFI_SSID "wifi名称" #define WIFI_PASSWORD "wifi密码" #define MQTT_IP "broker.emqx.io" @@ -5,7 +6,6 @@ #define MQTT_PASSWORD "" #define MQTT_TOPIC "LB2353" // 这里填PushDeer的Key #define MQTT_PORT 1883 -#define MQTT_CLIENT_NAME "DeerEsp-001" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧 // ====== 以下不用修改 =============== @@ -48,6 +48,7 @@ void setup() { tft.begin(); + // tft.setRotation(1); // 屏幕方向 tft.fillScreen(TFT_BLACK); tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ..."); Serial.println("tft init");