18static constexpr size_t DEVICE_INFO_BUFFER_SIZE = 256;
19static constexpr size_t RESET_REASON_BUFFER_SIZE = 128;
20static constexpr size_t WAKEUP_CAUSE_BUFFER_SIZE = 128;
38#if defined(USE_ESP8266) || defined(USE_ESP32)
39 SUB_SENSOR(fragmentation)
41#if defined(USE_ESP32) || defined(USE_LIBRETINY)
48 SUB_SENSOR(cpu_frequency)
61#if defined(USE_ESP32) || defined(USE_ZEPHYR)
virtual void on_shutdown()
This class simplifies creating components that periodically check a state.
SUB_TEXT_SENSOR(device_info) SUB_TEXT_SENSOR(reset_reason) SUB_SENSOR(free) SUB_SENSOR(block) SUB_SENSOR(fragmentation) SUB_SENSOR(min_free) SUB_SENSOR(loop_time) SUB_SENSOR(psram) SUB_SENSOR(cpu_frequency) void on_shutdown() override
const char * get_wakeup_cause_(std::span< char, WAKEUP_CAUSE_BUFFER_SIZE > buffer)
float get_setup_priority() const override
uint32_t last_loop_timetag_
void log_partition_info_()
Logs information about the device's partition table.
size_t get_device_info_(std::span< char, DEVICE_INFO_BUFFER_SIZE > buffer, size_t pos)
void dump_config() override
uint32_t get_free_heap_()
const char * get_reset_reason_(std::span< char, RESET_REASON_BUFFER_SIZE > buffer)