initial
This commit is contained in:
21
main/Server.hpp
Normal file
21
main/Server.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef SERVER_HPP
|
||||
#define SERVER_HPP
|
||||
|
||||
#include "ESPAsyncWebServer.h"
|
||||
|
||||
class WebServer {
|
||||
public:
|
||||
WebServer() : server(80) {}
|
||||
void Init();
|
||||
void Start();
|
||||
void Stop();
|
||||
bool isRunning() const { return running; }
|
||||
|
||||
private:
|
||||
bool running = false;
|
||||
AsyncWebServer server;
|
||||
};
|
||||
|
||||
extern WebServer web_server;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user