AlarmClock persistent

(Grzegorz Janocha) #1

Hello all,
In my project I would like to use the AlarmClock example, but I wonder how to remember the data so that it does not disappear after turning off the power,
So far, I have not used data storage.

(Lucky) #2

You would need to use persistence and then restore the values using restoreOnStartup. My question though is how you setup your alarm clock? If you use a time based Cron rule, you just have to set it up once and you won’t need persistence for it.

(Grzegorz Janocha) #3

I want to use data storage because the crone rule does not allow changing from the interface
Unfortunately, I have no experience with data persistence and I have a big problem with it,