Universal-Arduino-Telegram-Bot: Stops after 2 days
I have an esp8266 installed as an unmanned warning system, but afetr 2 days it stopped receiving messages from the bot. Other functions in the device are still workign (i.e. webserver), but it is not receiving any messages from the bot. I had to restart the device. If this is the normal behaviour, it is not reliable for a warning system.
This is my loop function (Bot_mtbs is 1000):
if (millis() > Bot_lasttime + Bot_mtbs) {
int numNewMessages = bot.getUpdates(bot.last_message_received + 1);
while (numNewMessages) {
handleNewMessages(numNewMessages);
numNewMessages = bot.getUpdates(bot.last_message_received + 1);
}
Bot_lasttime = millis();
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 35
Скорее всего менялось api телеграмма. Поставил версию ядра esp 2.5.0 А в setup добавил client.setInsecure();
У меня бот перестал отвечать сам, без перехода на обновленную версию прошивки(( Поэтому тут же на форуме нашел такое решение. Да должна быть обратная совместимость. Перезагрузка можно прописать, но у меня на последней версии отказывается работать (
Они должны сохранять обратную совместимость. По этому не соглашусь по поводу api. А на счет esp возможно, эта проблема появилась после перехода на версию 2.6.3. До этого была 2.4.2 и все стабильно работало.
Что бы не менять версию esp, можно делать перезагрузку каждые 24 часа, к примеру)
I have the same problem. Some time ago everything worked fine. Esp8266 lib v2.6.3