Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover old state after powerdown/ reset #10

Open
michapr opened this issue Jan 23, 2025 · 0 comments
Open

Recover old state after powerdown/ reset #10

michapr opened this issue Jan 23, 2025 · 0 comments

Comments

@michapr
Copy link

michapr commented Jan 23, 2025

Hi,

If using the device with a ESP32 and deep sleep for saving energy the gas index algorithm will not work because all collected values lost - as far as I understand.
Same will happen if power is down (as sample replace battery or empty LiPo).

Can you provide any example code for save / restore the states to EEPROM?
For ESP32 deep sleep it could be modified later for RTC RAM - and maybe once every hour save to EEPROM or maybe use external FRAM.

THANKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant