Open
Description
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();
Metadata
Metadata
Assignees
Labels
No labels