ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
crash_report.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::CrashCoreBacktrace
 
struct  esphome::CrashReport
 

Namespaces

namespace  esphome
 

Enumerations

enum  esphome::CrashReportFlag : uint8_t {
  esphome::CRASH_REPORT_FLAG_NONE = 0 , esphome::CRASH_REPORT_FLAG_PRESENT = 1 << 0 , esphome::CRASH_REPORT_FLAG_BUILD_MATCHES = 1 << 1 , esphome::CRASH_REPORT_FLAG_CAUSE = 1 << 2 ,
  esphome::CRASH_REPORT_FLAG_FAULT_ADDRESS = 1 << 3
}
 Sent as is over the native API. More...
 
enum class  esphome::CrashReason : uint8_t {
  esphome::CRASH_REASON_UNKNOWN = 0 , esphome::CRASH_REASON_EXCEPTION = 1 , esphome::CRASH_REASON_ABORT = 2 , esphome::CRASH_REASON_TASK_WATCHDOG = 3 ,
  esphome::CRASH_REASON_INTERRUPT_WATCHDOG = 4 , esphome::CRASH_REASON_SOFT_WATCHDOG = 5 , esphome::CRASH_REASON_HARDWARE_WATCHDOG = 6
}
 Sent as is over the native API. More...
 

Functions

bool esphome::crash_report_get (CrashReport &out)
 The previous boot's crash; false when there is none or it was read. Implemented per platform.
 
void esphome::crash_report_clear ()
 Mark the report read; it also no longer survives a reboot.