Tech Note 136 - ESP32 Using its 8K of RTC RAM to retain data variables during deep sleep.
G6EJD - David G6EJD - David
15.9K subscribers
6,499 views
295

 Published On Mar 20, 2020

The ESP32 has 8192 bytes of real Time Clock (RTC) RAM that can be used to store variables during periods of deep sleep. Using a simple compiler directive called RTC_DATA_ATTR enables data to be retained during sleep. This provides the ability to save; for example sensor readings, during successive readings and then exporting then in bulk. Up to 800 integer or floating point readings can be stored.
Code Examples: https://github.com/G6EJD/ESP32_RTC_RAM

show more

Share/Embed