feat(Telemetry,Networking,OTAManager,CommunicationRouter): diagnostics report — CPU temp, WiFi reconnects, OTA state, stack high-water mark
Console requested four more Health-tab metrics beyond F-054's free_heap/ping work. None needed 30s heartbeat freshness, so this adds a separate low-frequency report instead of growing the heartbeat further: published every 5 min to status/info (diagnostics_report) and queryable on-demand via a new telemetry.get_diagnostics command. Only CPU temperature needs local sampling (15s, via a min/max/avg RunningStats accumulator on Telemetry) — a thermal spike could occur and subside entirely within a 5-minute gap. The other three fields are monotonic/self-tracking (WiFi reconnect counter, FreeRTOS's own stack high-water mark, rarely-changing OTA state) so a single read at report time loses no information. Verified: pio run on all four board variants.
This commit is contained in:
@@ -54,6 +54,7 @@ bool HealthMonitor::begin() {
|
||||
);
|
||||
|
||||
if (_monitoringTaskHandle != nullptr) {
|
||||
Telemetry::registerTaskForStackMonitoring("HealthMonitor", _monitoringTaskHandle);
|
||||
LOG_INFO(TAG, "✅ Health Monitor initialized with automatic monitoring");
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user