-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot disconnects after few minutes #142
Comments
Facing a similar issue using echoBot_wifiNINA example code as is. Just inserted my Wifi credentials, telegram token & userid. I am using Arduino Nano 33 IoT as a platform. Bot works fine for few minutes and echoes back all messages as expected, but then stops doing so. To figure out where it is hanging I set
Any idea what is going on/wrong here? Thanks & best regards |
Enabled debugging as @fmanthey did, I also get this line in my log:
so it looks like the server closes the connection. |
I am using https://github.com/cotestatnt/AsyncTelegram2/blob/master/examples/lightBot/lightBot.ino to test my bot and everything works fine for few minutes, the led responds to my on/off commands, but than my serial monitor prints "Unable to connect to Telegram server" over and over again.
The device that I'm using is AI THINKER esp32-cam.
Looked at #13 which sounds similar, but I am using the example as-is, so my loop does have the line
myBot.getNewMessage(msg)
.Also tried to set https://github.com/cotestatnt/AsyncTelegram2/blob/main/src/AsyncTelegram2.h#L20 (FS_SUPPORT) to
TRUE
, but there is no extra output in my console, all I get is:I've managed to find that the last line is the output of AsyncTelegram2::checkConnection, but this is as far as I could get.
Any suggestions?
The text was updated successfully, but these errors were encountered: