awake_stats¶
How long the board is awake between two status reports.
Accumulated in the RTC state before every deep sleep and published with
the status (see hamqtt), to tell whether the wakes or the sleep
current dominate the battery drain.
Attributes¶
Functions¶
Module Contents¶
- awake_stats.BOOT_OVERHEAD_MS = 300¶
- awake_stats.fresh(now_s)¶
Start a new counting period at
now_s(seconds).
- awake_stats.add_wake(stats, awake_ms, now_s)¶
stats(or a fresh count) plus one wake ofawake_ms.