// aes67_health: Uptime, heap/PSRAM, temperature sensors (temps[] with min/max/warn). // Core component: must not depend on main/ (project code). #pragma once #include "esp_err.h" // Read one temperature in °C. Return ESP_OK on success. typedef esp_err_t (*health_temp_read_cb_t)(float *celsius); // Registers the health fields (fw, uptime_s, heap_free, psram_free, temps) in /api/status, // adds the on-die "SoC" sensor and starts the 2 s sampling task. esp_err_t aes67_health_init(void); // Add a temperature sensor (e.g. an external I2C one from the board). warn_c <= 0: no warning. esp_err_t health_temp_register(const char *name, health_temp_read_cb_t read, float warn_c);