Skip to content

Commit

Permalink
Update DeepSleep.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbode authored Jan 29, 2022
1 parent 5efa9d7 commit ab9ab83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/DeepSleep.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DeepSleep support for up to 1 day (i.e., 86,400 seconds) (e.g., if used with KNX) ([`DeepSleepTime`](Commands#deepsleeptime)).
DeepSleep support for up to 10 years (i.e., 86,400 seconds = 1 day) (e.g., if used with KNX) ([`DeepSleepTime`](Commands#deepsleeptime)).

The ESP8266 has a limitation of a maximum of ~71 minutes DeepSleep. To overcome the limitation, a short wake-up is performed - the device will wake up every hour for <0.3 seconds until the DeepSleep time is reached. The remaining DeepSleep time is decremented, and the device is then put back in DeepSleep again. The remaining time is stored in RTC memory. As long as the device is powered (e.g., via the battery), this should work fine. Flash memory is not used because of how often this has to occur (every hour) and the time it takes for the flash to be ready takes much longer than the total time to write to the RTC.

Expand Down

0 comments on commit ab9ab83

Please sign in to comment.