Skip to content

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

@jmozmoz

Description

@jmozmoz

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:

  • get the current state of the state machine (the pull request added ESP, removed unneeded file #24 implements this).
  • either serialize the current state object or create a unique identifier of it and store this in EEPROM/flash. Again pull request added ESP, removed unneeded file #24 adds names for states which could be used as identifiers; but currently these names are not guaranteed to be unique.
  • after reboot: create state objects in a way that one of the newly created ones can be identified as the stored one (or detect incompatible state).
  • if state from EEPROM is valid, initialize state machine with that state.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions