Skip to content

Device frozen after few days #161

@fmarzocca

Description

@fmarzocca

I have a device running 24/7 connected to Telegram. After a few days of operation, I usually find the device frozen in the morning. After troubleshooting, I identified that the issue occurs with the sendMessage call, which hangs (does not return) and eventually causes the device to lock up.

This is the function I am using:

void SendTelegram(const char* text, bool HTML = false) {
    TBMessage msg;
    msg.sender.id = 0;
    msg.chatId = CHAN_ID;
    msg.isHTMLenabled = HTML;
    myBot.sendMessage(msg, text);
    yield();
}

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