mirror of
https://github.com/easychen/pushdeer.git
synced 2024-11-01 08:09:19 +08:00
修改client name冲突的问题
This commit is contained in:
parent
6db248e2b8
commit
9f669714b2
@ -5,10 +5,10 @@
|
|||||||
#define MQTT_PASSWORD "MQTT密码"
|
#define MQTT_PASSWORD "MQTT密码"
|
||||||
#define MQTT_TOPIC "PushDeer pushkey" // 这里填PushDeer的Key
|
#define MQTT_TOPIC "PushDeer pushkey" // 这里填PushDeer的Key
|
||||||
#define MQTT_PORT 1883
|
#define MQTT_PORT 1883
|
||||||
|
#define MQTT_CLIENT_NAME "DeerEsp" // 多个同名设备连接同一台服务器会导致其他下线,所以起一个唯一的名字吧
|
||||||
|
|
||||||
|
|
||||||
// ====== 以下不用修改 ===============
|
// ====== 以下不用修改 ===============
|
||||||
#define MQTT_CLIENT_NAME "DeerEsp"
|
|
||||||
#define DOWNLOADED_IMG "/download.jpg"
|
#define DOWNLOADED_IMG "/download.jpg"
|
||||||
|
|
||||||
|
|
||||||
@ -46,6 +46,7 @@ void setup() {
|
|||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
mclient.enableDebuggingMessages();
|
mclient.enableDebuggingMessages();
|
||||||
|
|
||||||
|
|
||||||
tft.begin();
|
tft.begin();
|
||||||
tft.fillScreen(TFT_BLACK);
|
tft.fillScreen(TFT_BLACK);
|
||||||
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ...");
|
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.setTextSize(TXT_SCALE);tft.println("Init ...");
|
||||||
|
Loading…
Reference in New Issue
Block a user