Gianbacchio / ESP8266-TelegramBot

Telegram Bot Library for ESP8266 on Arduino IDE
GNU General Public License v2.0
187 stars 71 forks source link

Wdt reset because trying to send Email in same Sketch #16

Open Macci0 opened 7 years ago

Macci0 commented 7 years ago

If i try to use the Bot and to have some other fuctions like sending an Gmail, the ESP do a reset. (a memory problem) with Serial.printf("Free heap size3:\t\t\t\t\t%d (bytes)\n", ESP.getFreeHeap()); we can look for the free Heap and if it's go low like 17152 there's the problem.

client.println("Connection: close"); /// zum speicher frei geben
return mess;

will remove the problem in my Sketch