mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 07:02:17 +03:00
new NextionUpload + Telegram_v2
This commit is contained in:
@@ -240,11 +240,12 @@ public:
|
||||
}
|
||||
else if (msg.text.indexOf("nextion") != -1 && msg.chatID == _chatID)
|
||||
{
|
||||
if (downloadFile(msg))
|
||||
{
|
||||
// flashNextion();
|
||||
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
|
||||
if ((*it)->getSubtype() == "NextionUpload") {
|
||||
(*it)->uploadNextionTlgrm(msg.fileUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (msg.text.indexOf("help") != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user