RTC: Unable to save data through reset
Posted: Wed May 03, 2017 11:17 am
Hello, I found a video to help get the RTC memory to hold information. However, it does not seem to work when I use Deep Sleep and reset the processor. Basic Flow
setup()
system_rtc_mem_read // SHOULD get the data from the RTC but only gets zeros
loop()
// do some work
// update rtc structure
system_rtc_mem_write // save for when we wake up
ESP.deepSleep(15000, WAKE_RFCAL);
The deepSleep and the RTC work independently. Anyone doing this typical IoT stuff?
Any help or working example code would be greatly Appreciated!!!
Kim
setup()
system_rtc_mem_read // SHOULD get the data from the RTC but only gets zeros
loop()
// do some work
// update rtc structure
system_rtc_mem_write // save for when we wake up
ESP.deepSleep(15000, WAKE_RFCAL);
The deepSleep and the RTC work independently. Anyone doing this typical IoT stuff?
Any help or working example code would be greatly Appreciated!!!
Kim