idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
Sleep Component

Power-saving sleep modes for ESP32. More...

Namespaces

namespace  idfxx
 
namespace  idfxx::sleep
 

Detailed Description

Power-saving sleep modes for ESP32.

Enter light sleep — which suspends the CPU and resumes execution in place — or deep sleep, which powers down most of the chip and restarts the application on wake. Wake-up sources (timer, GPIO level, EXT0/EXT1 pins) are passed directly to the sleep call:

@ low
Logic low (0)
wakeup_source light_sleep(const Sources &... sources)
Enters light sleep until one of the given wake-up sources triggers.
Definition sleep.hpp:368
Wakes the chip from light sleep when a digital pin is at a level.
Definition sleep.hpp:107
Wakes the chip after a fixed duration of sleep.
Definition sleep.hpp:92

A lower-level interface (enable_* / disable_*) is also provided for arming wake-up sources persistently across multiple sleeps.

Depends on Core Utilities for error handling and GPIO Component for pin types.