5#include <zephyr/sys/poweroff.h>
9static const char *
const TAG =
"deep_sleep";
35 const bool woke = esphome::wake_request_take();
37 ESP_LOGD(TAG,
"Woken up by another thread");
39 ESP_LOGD(TAG,
"Timeout expired (normal sleep)");
optional< uint64_t > sleep_duration_
optional< uint32_t > get_run_duration_() const
optional< uint32_t > run_duration_
void dump_config_platform_()
void ESPHOME_ALWAYS_INLINE wakeable_delay(uint32_t ms)
Host wakeable_delay uses select() over the registered fds — defined in wake_host.cpp.
Platform-specific main loop wake primitives.