jonblack / arduino-fsm

Arduino library for implementing a finite state machine.
MIT License
200 stars 97 forks source link

Store current state of state machine in EEPROM and on next boot initalize state machine with that state #28

Open jmozmoz opened 6 years ago

jmozmoz commented 6 years ago

This is a question/feature request: Store current state of state machine in EEPROM and on next boot initalize state machine with that state.

I guess these sub-issues had to be solved for this to work:

This would be useful if deep sleep is used to save battery/energy.

LennartHennigs commented 2 years ago

Hey @jmozmoz, to catch up on your question (better late then never), I added unique IDs to the states in my branch: https://github.com/LennartHennigs/arduino-fsm

This now allows to store the state in the EEPROM of the ESP32. I'll take a look at this and add another commit.

Cheers. l.