witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.09k stars 302 forks source link

WDT Reset when not connected to WiFi #211

Open obi134 opened 3 years ago

obi134 commented 3 years ago

When trying to send a message with sendSimpleMessage or sendMessage my D1 mini run into WDT reset when not connected to WiFi (in AP mode).

Reducing the wait loops to 3000 solved the issue for me.

Line in sendSimpleMessage:

while (millis() - sttime < 8000ul) { // loop for a while to send the message

Line in sendPostMessage which is called in sendMessage:

while (millis() < sttime + 8000) { // loop for a while to send the message

But I guess there is a reason for 8000?! Will it have other limitations?