Skip to main content
5 votes
Accepted

ESP32 can not deep sleep longer than 35 minutes

So, formalizing this into an answer: long DEEP_SLEEP_TIME_SEC = 43200; // ... esp_sleep_enable_timer_wakeup(1000000L * DEEP_SLEEP_TIME_SEC); This is attempting to calculate the result of 1000000L * ...
timemage's user avatar
  • 5,739
4 votes

Store value in EEPROM to perform different actions on reset?

While it looks interesting as idea, IHMO you have keep in mind: Include some code for button denouncing logic. Actually you will receive couple of “resets” during ~20ms during button press. Without ...
Serge Ageyev's user avatar
1 vote

Store value in EEPROM to perform different actions on reset?

Totally agree with Serge. To cover issues #3 and #4 of Serge's answer I recommend you to have a look at FRAM. It has more durability with 10 trillions of write cycles.
Alexander's user avatar
  • 154

Only top scored, non community-wiki answers of a minimum length are eligible