ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
crash_handler.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_ESP32_CRASH_HANDLER
4
5namespace esphome::esp32 {
6
8inline constexpr const char *CRASH_LOG_TAG = "esp32.crash";
9
12
16
19
20} // namespace esphome::esp32
21
22#endif // USE_ESP32_CRASH_HANDLER
constexpr const char * CRASH_LOG_TAG
The tag the crash record is logged under, so a client can check the level in force for it.
bool crash_handler_has_data()
Returns true if crash data was found this boot, reading it first if needed.
void crash_handler_log()
Log crash data if a crash was detected on previous boot.
void crash_handler_clear()
Clear the magic marker and mark crash data as consumed.