Cubecell AB02 Store sensor data during sleep cycle

I have a sensor that outouts 96 bytes and would like to store the last readings and compare them with the new readings after each wake cycle. Given the readings are taken every 30 seconds storing them in the eprom is not a great idea as far as I am aware because of the wear.

Is flash memory cleared after each sleep cycle?

You can save them in RAM, because it’s not cleared during deep sleep. The ASR650x does a real sleep, unlike the ESP32 which does a reset upon wake up.

2 Likes

@eiten Thanks, Yea i did some tests and looks like there is no need to even write it to flash because the contents of the array are still there after the sleep cycle. That makes life so much easier :slight_smile:

1 Like