ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
esphome::esp32 Namespace Reference

Data Structures

class  ESP32InternalGPIOPin
 
class  ESP32PreferenceBackend
 
class  ESP32Preferences
 

Functions

void crash_handler_read_and_clear ()
 Read and validate crash data from NOINIT memory.
 
bool crash_handler_has_data ()
 Returns true if crash data was found this boot.
 
void crash_handler_clear ()
 Clear the magic marker and mark crash data as consumed.
 
void crash_handler_log ()
 Log crash data if a crash was detected on previous boot.
 
ESP32Preferencesget_preferences ()
 
void setup_preferences ()
 

Function Documentation

◆ crash_handler_clear()

void esphome::esp32::crash_handler_clear ( )

Clear the magic marker and mark crash data as consumed.

Call after the data has been delivered to an API client.

Definition at line 178 of file crash_handler.cpp.

◆ crash_handler_has_data()

bool esphome::esp32::crash_handler_has_data ( )

Returns true if crash data was found this boot.

Definition at line 176 of file crash_handler.cpp.

◆ crash_handler_log()

void esphome::esp32::crash_handler_log ( )

Log crash data if a crash was detected on previous boot.

Definition at line 325 of file crash_handler.cpp.

◆ crash_handler_read_and_clear()

void esphome::esp32::crash_handler_read_and_clear ( )

Read and validate crash data from NOINIT memory.

Does not clear the magic marker — call crash_handler_clear() after the data has been delivered to an API client so it survives OTA rollback reboots.

Definition at line 151 of file crash_handler.cpp.

◆ get_preferences()

ESP32Preferences * esphome::esp32::get_preferences ( )

Definition at line 183 of file preferences.cpp.

◆ setup_preferences()

void esphome::esp32::setup_preferences ( )

Definition at line 185 of file preferences.cpp.