Adding diagnostics
This commit is contained in:
+8
-4
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user