dancol90 / ESP8266Ping

Ping library for ESP8266 Arduino core
GNU Lesser General Public License v2.1
261 stars 134 forks source link

Memmory Allocation #24

Open aragornale opened 4 years ago

aragornale commented 4 years ago

i had made a little code using this library and I experienced a system restart every few hours. After searching and debuging i´ve fount that everytime i use the ping.ping eats almost 50 bytes from memory, so, i guess when it run out of memory, some wahtchdog restarte de DSP32 code : byte x=10, y=0; if (Ping.ping(gateway,1)) {PingCount=0; lcd.setCursor (x,y); lcd.print ((char)4);} else {PingCount++; lcd.setCursor (x,y); lcd.print (" ");}

adynis commented 4 years ago

I have the same problem :( ping library eats up all the Memory .... :(