esp_get_free_heap_size() function
Get the size of available heap.
Syntax
uint32_t esp_get_free_heap_size(void);
Return value
Available heap size, in bytes.
Notes
Note that the returned value may be larger than the maximum contiguous block which can be allocated.
Examples
esp_get_free_heap_size() is referenced by 20 libraries and example projects: