Telegram V2 & espCAM

This commit is contained in:
Mit4el
2023-10-02 21:29:02 +03:00
parent 8eb719ea6c
commit 0e679f132d
88 changed files with 527 additions and 446 deletions

View File

@@ -84,7 +84,7 @@ class LogingDaily : public IoTItem {
if (telegram == 1) {
String msg = descr + ": total " + String(currentValue) + ", consumed " + String(difference);
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
if ((*it)->getSubtype() == "TelegramLT" || "Telegram") {
if ((*it)->getSubtype() == "TelegramLT" || "Telegram" || "Telegram_v2") {
(*it)->sendTelegramMsg(false, msg);
}
}