Hi all,
in a video from the guy with the swiss accent, I found an hint that it is possible to save data in the ESP32 which will not get lost when the ESP32 is going into deepsleep.
Is this already possible with micropython? If yes, some lines of code would be great.
Best regards, Uwe
Can i store arbitrary data in RTC_DATA_ATTR for ESP32
Re: Can i store arbitrary data in RTC_DATA_ATTR for ESP32
This is supported in my Micropython port.
WikiUp to 64 32-bit integers can be saved in RTC memory.
One string of up to 2048 characters can be saved in RTC memory.
The string can be, for example, json string containing the parameters which has to be restored after deep sleep wake-up.
Integers and string saved in RTC memory are protected by 16-bit CRC.
Re: Can i store arbitrary data in RTC_DATA_ATTR for ESP32
Thanks for your answers.
I like the JSON solution.
Bye, Uwe
I like the JSON solution.
Bye, Uwe