драйвер Telegramm - tlgrmItem

This commit is contained in:
Mit4el
2024-03-29 10:02:04 +03:00
parent 9776f821d3
commit b25398bff4
2 changed files with 14 additions and 2 deletions

View File

@@ -110,8 +110,13 @@ class Telegram : public IoTItem {
}
}
~Telegram() {
IoTItem *getTlgrmDriver()
{
return this;
}
~Telegram() {
tlgrmItem = nullptr;
};
};

View File

@@ -58,7 +58,14 @@ class TelegramLT : public IoTItem {
return {};
}
~TelegramLT(){};
IoTItem *getTlgrmDriver()
{
return this;
}
~TelegramLT() {
tlgrmItem = nullptr;
};
};
void *getAPI_TelegramLT(String subtype, String param) {