tell bot owner if somebody changed state via MQTT
This commit is contained in:
parent
dd2185216a
commit
61fda5250d
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user