Created new class based on the WebSockets server class (no logic yet)
This commit is contained in:
parent
dacfb6d4d1
commit
c0e5870cb6
6
src/app/DashboardWSServer.cpp
Normal file
6
src/app/DashboardWSServer.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "DashboardWSServer.h"
|
||||||
|
|
||||||
|
DashboardWSServer::DashboardWSServer(uint16_t port, String origin, String protocol) : WebSocketsServer(port, origin, protocol)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
13
src/app/DashboardWSServer.h
Normal file
13
src/app/DashboardWSServer.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef DASHBOARDWSSERVER_H
|
||||||
|
#define DASHBOARDWSSERVER_H
|
||||||
|
#include <WebSocketsServer.h>
|
||||||
|
|
||||||
|
class DashboardWSServer : public WebSocketsServer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DashboardWSServer(uint16_t port, String origin = "", String protocol = "arduino");
|
||||||
|
protected:
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //DASHBOARDWSSERVER_H
|
Loading…
Reference in New Issue
Block a user