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

How to override the data which is stored in rtc? #3

Open
pawisoon opened this issue Mar 23, 2017 · 1 comment
Open

How to override the data which is stored in rtc? #3

pawisoon opened this issue Mar 23, 2017 · 1 comment

Comments

@pawisoon
Copy link

Hi,
Thanks a lot for your 1daydeepsleep code!
https://github.com/HarringayMakerSpace/IoT/blob/master/HygrometerOnceADay/HygrometerOnceADay.ino

I was just wondering how to override it? I mean, I run your code but right after esp going to deepsleep I disconnect if from power and reconnect it after a few seconds.
What behaviour should I expect? In my case esp throws:

rtcStore: 123,10
rtcStore: 123,11
*** Up time: 71, deep sleep for 3600 seconds, with radio off... 

How to make it restart code when power comes back instead of going to sleep again?
Cheers,
Pawel

@torntrousers
Copy link
Contributor

I wonder if the using ESP.getResetReason() would help to tell if it was starting up due to a deepSleep wake up or a power on reset. Some discussion about that here.

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

2 participants