Using RTC memory
Posted: Sun Jan 22, 2023 12:29 pm
Hi. I'd like to store some data (about 100 bytes) on my ESP32 which I'd like to access after waking up from a deep sleep.
Are there any functions to do this in a Rust project? I know there's an `RTC_DATA_ATTR` attribute you can use in C/C++ projects but is there a way to do this in Rust? Since this data will be updated before every sleep, using flash memory is not the best choice, as it has a limited amount of write cycles.
Are there any functions to do this in a Rust project? I know there's an `RTC_DATA_ATTR` attribute you can use in C/C++ projects but is there a way to do this in Rust? Since this data will be updated before every sleep, using flash memory is not the best choice, as it has a limited amount of write cycles.