diff --git a/src/main.cpp b/src/main.cpp index 14e4193..503b83d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -483,6 +483,8 @@ void mqttCallback(char *topic, unsigned char *message, unsigned int length) { printClose(MessageString); } + + tele.sendMessage(TELEGRAM_BOT_OWNER, String("Display zeigt \"") + Text + "\" via MQTT"); } /* if topic is the text topic try deserializing the json text */ @@ -490,5 +492,7 @@ void mqttCallback(char *topic, unsigned char *message, unsigned int length) { Serial.println("Text topic received: " + MessageString); printText(MessageString); + + tele.sendMessage(TELEGRAM_BOT_OWNER, String("Display zeigt \"") + Text + "\" via MQTT"); } }