-->
Page 1 of 1

recommended amount of free heap

PostPosted: Tue Jun 18, 2019 10:01 am
by pidloop
Hello!

Just wondering how much heap I should keep available in my ESP8266 Arduino app.

I don't use the heap directly (no malloc, no new). I have one WiFiServer that lives forever and when I use a WiFiClient I always take care to pair connect() and stop(). I regularly log ESP.getFreeHeap() and ESP.getMaxFreeBlockSize() and they stay around 22 kB and 15 kB, respectively. Is this ok or getting close?

I've never had any reason to suspect memory pressure but wanted to check here about best practices.

Many thanks for a great platform!