Chat freely about anything...

User avatar
By pidloop
#82834 Hello!

Just wondering how much heap I should keep available in my 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!
User avatar
By pidloop
#82866
eriksl wrote:This sounds like Arduino, am I right?


My apologies, I thought this was the Arduino ESP8266 forum. I will try to find it and post there.