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

Data Structures

class  ESP32InternalGPIOPin
 
class  ESP32PreferenceBackend
 
class  ESP32Preferences
 

Functions

 ESPHOME_LOG_TAG (TAG, CRASH_LOG_TAG)
 
bool crash_handler_has_data ()
 Returns true if crash data was found this boot, reading it first if needed.
 
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.
 
 ESPHOME_LOG_TAG (TAG, "esp32")
 
ESP32Preferences * get_preferences ()
 
 ESPHOME_LOG_TAG (TAG, "preferences")
 
void setup_preferences ()
 

Variables

constexpr const char * CRASH_LOG_TAG = "esp32.crash"
 The tag the crash record is logged under, so a client can check the level in force for it.
 

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 208 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, reading it first if needed.

Definition at line 203 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 433 of file crash_handler.cpp.

◆ ESPHOME_LOG_TAG() [1/3]

esphome::esp32::ESPHOME_LOG_TAG ( TAG ,
"esp32"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::esp32::ESPHOME_LOG_TAG ( TAG ,
"preferences"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::esp32::ESPHOME_LOG_TAG ( TAG ,
CRASH_LOG_TAG  )

◆ get_preferences()

ESP32Preferences * esphome::esp32::get_preferences ( )

Definition at line 312 of file preferences.cpp.

◆ setup_preferences()

void esphome::esp32::setup_preferences ( )

Definition at line 314 of file preferences.cpp.

Variable Documentation

◆ CRASH_LOG_TAG

const char* esphome::esp32::CRASH_LOG_TAG = "esp32.crash"
inlineconstexpr

The tag the crash record is logged under, so a client can check the level in force for it.

Definition at line 8 of file crash_handler.h.