Files
aes67-ESP32-P4/components/aes67_health/include/aes67_health.h
T
bsncubed 35275b8ccf Step 2.1: web server, embedded UI, /api/status, /api/reboot
- aes67_web: httpd (wildcard URI matching), serves web/index.html embedded
  via EMBED_TXTFILES, status registry (status_register) and route registry
  (web_register_uri), GET /api/status, POST /api/reboot (restarts 0.5 s
  after the response).
- Status fields come from each core component: aes67_net (ip, aes67_ip,
  mac, link), aes67_health (fw, uptime_s, heap_free, psram_free),
  aes67_tx stub (tx_packets, underruns = 0). No ptp object yet, so the UI
  shows "no data".
- Verified on board: / serves index.html byte-identical (27601 B),
  /api/status returns live values, reboot via API returns in ~12 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 22:56:06 +10:00

9 lines
302 B
C

// 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"
// Registers the health fields (fw, uptime_s, heap_free, psram_free) in /api/status.
esp_err_t aes67_health_init(void);