mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
upd Nextion upload
This commit is contained in:
@@ -428,7 +428,7 @@ bool ESPNexUpload::upload(Stream &myFile)
|
||||
#endif
|
||||
|
||||
// create buffer for read
|
||||
uint8_t buff[2048] = {0};
|
||||
uint8_t buff[4096] = {0};
|
||||
|
||||
// read all data from server
|
||||
while (_undownloadByte > 0 || _undownloadByte == -1)
|
||||
|
||||
@@ -445,11 +445,12 @@ public:
|
||||
{
|
||||
downloadFile(msg);
|
||||
}
|
||||
}
|
||||
else if (msg.text.indexOf("Next_firmware") != -1)
|
||||
{
|
||||
// удаляем последнее сообщение от бота
|
||||
_myBot->deleteMessage(_myBot->lastBotMsg());
|
||||
if (msg.data.indexOf("Firmware") != -1)
|
||||
if (msg.data.indexOf("Firmware") != -1 && OTAfilepath != "")
|
||||
{
|
||||
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it)
|
||||
{
|
||||
@@ -462,7 +463,6 @@ public:
|
||||
OTAfilepath = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
// -------------- Обработка кнопок меню созданного в сценарии --------------
|
||||
// -------------------------------------------------------------------------
|
||||
else if (auto search = mapBtnMenu.find(msg.text); search != mapBtnMenu.end())
|
||||
|
||||
Reference in New Issue
Block a user