Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By pidloop
#82869 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!