pbecchi / ESP32_ping

Ping library for ESP32
15 stars 13 forks source link

Memmory usage #11

Open aragornale opened 5 years ago

aragornale commented 5 years ago

Work fine, but after using the ESP32 a few hours it´s resets. Debugging i´ve found everytime i use ping_start(), eats 56 bytes of memory, resulting in a run out memory after a few hours working. Here is the little piece of code i´m using to check my gateway: if (ping_start(WiFi.gatewayIP(), 1, 0, 0, 5)) {PingCount=0; lcd.setCursor (10,0); lcd.print ((char)4);} else {PingCount++; lcd.setCursor (10,0); lcd.print (" ");}

any ideas? thanks a lot