This commit is contained in:
Easy 2022-02-17 11:59:13 +08:00
parent ff1dd0c302
commit a3cc2f4fd3

View File

@ -63,7 +63,7 @@ void setup() {
void onConnectionEstablished() void onConnectionEstablished()
{ {
Serial.println("connected"); Serial.println("connected");
tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.println("Waiting for message ..."); tft.setTextColor(0xFFFF,0x0000);tft.setCursor(0, 0, 1);tft.println("Waiting for messages ...");
mclient.subscribe(String(MQTT_TOPIC)+"_text", [] (const String &payload) mclient.subscribe(String(MQTT_TOPIC)+"_text", [] (const String &payload)
{ {