Finished web socket communication
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "service.h"
|
||||
#include "../core/dashboard_state.h"
|
||||
#include <WebServer.h>
|
||||
#include <WebSocketsServer.h>
|
||||
|
||||
#include "service.h"
|
||||
|
||||
#include "../core/dashboard_state.h"
|
||||
|
||||
class WebService : public Service {
|
||||
|
||||
@@ -17,5 +19,9 @@ public:
|
||||
private:
|
||||
|
||||
WebServer server;
|
||||
WebSocketsServer webSocket;
|
||||
DashboardState dashboardState;
|
||||
|
||||
void handleWebSocketMessage(uint8_t clientNum, uint8_t *payload, size_t length);
|
||||
void broadcastState();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user