Adding diagnostics

This commit is contained in:
2026-08-09 09:20:38 -06:00
parent e593c3fed9
commit bd582c0d81
8 changed files with 216 additions and 10 deletions
+8 -4
View File
@@ -4,6 +4,7 @@
#include <Arduino.h>
#include "core/dashboard_state.h"
#include "core/diagnostics_state.h"
#include "services/service_manager.h"
#include "services/wifi_service.h"
@@ -11,22 +12,24 @@
#include "services/web_service.h"
#include "tasks/system_task.h"
#include "tasks/diagnostics_task.h"
DashboardState dashboardState;
DiagnosticsState diagnosticsState;
// Simple service scheduler nice for grouping tasks
ServiceManager services;
WiFiService wifi;
OTAService ota;
WebService web(dashboardState);
WebService web(dashboardState, diagnosticsState);
// Actual FreeRTOS tasks that are scheduled
SystemTask systemTask(services);
DiagnosticsTask diagnosticsTask(diagnosticsState);
void setup()
{
@@ -38,6 +41,7 @@ void setup()
systemTask.start();
diagnosticsTask.start();
}