Skip to content

Stops after 2 days #147

Open
Open
@fmarzocca

Description

@fmarzocca

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions