Sketch RAM usage

MaxPlus
Posts: 1
Joined: Sun Jan 03, 2021 12:27 am

Sketch RAM usage

Postby MaxPlus » Sun Jan 03, 2021 12:41 am

RAM: [= ] 12.1% (used 39736 bytes from 327680 bytes)

From above, it is the RAM usage display when compiling a sketch. By the way, if I want to get this information while running my sketch dynamically.

Is there an API for supporting to get this info?

OutOfLine
Posts: 52
Joined: Sat Feb 24, 2018 1:32 pm

Re: Sketch RAM usage

Postby OutOfLine » Tue Jan 05, 2021 8:28 am

Have a look at ESP.getFreeHeap();

Who is online

Users browsing this forum: No registered users and 55 guests