Working on migrating to using websockets for the UI
This commit is contained in:
+6
-3
@@ -3,8 +3,9 @@
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "services/service_manager.h"
|
||||
#include "core/dashboard_state.h"
|
||||
|
||||
#include "services/service_manager.h"
|
||||
#include "services/wifi_service.h"
|
||||
#include "services/ota_service.h"
|
||||
#include "services/web_service.h"
|
||||
@@ -12,12 +13,15 @@
|
||||
#include "tasks/system_task.h"
|
||||
|
||||
|
||||
DashboardState dashboardState;
|
||||
|
||||
|
||||
ServiceManager services;
|
||||
|
||||
|
||||
WiFiService wifi;
|
||||
OTAService ota;
|
||||
WebService web;
|
||||
WebService web(dashboardState);
|
||||
|
||||
|
||||
SystemTask systemTask(services);
|
||||
@@ -28,7 +32,6 @@ void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
|
||||
services.add(&wifi);
|
||||
services.add(&ota);
|
||||
services.add(&web);
|
||||
|
||||
Reference in New Issue
Block a user