shurillu / CTBot

A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
MIT License
147 stars 34 forks source link

Function testConnection is still prone to sudden freeze in 3.0.0 :( #69

Open hamster66 opened 3 years ago

hamster66 commented 3 years ago

In my project (on 8266), it is necessary to determine the presence of the Internet once a second. In the current version I use the Pinger.h library to big dns servers like 1.1.1.1 or 8.8.8.8 which works flawlessly. I tried to use the function testConnection from 3.0.0 version instead of pinger, and I get a hard hang after a short time - 20-50 minutes. At the same time, functions getNewMessage and sendMessage seem to work much more stable and I do not observe any hangs on it yet.

shurillu commented 3 years ago

Hello Hamster66, thank you for your feedbacks. Regarding the CTBot::testConnection() member function, I'll do some test. It is a "creative" way to use that member function (I made it just for an initial test hehe). Cheers Stefano