add simple web server for configuration
This commit is contained in:
28
WebCfgServer.h
Normal file
28
WebCfgServer.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <WiFiServer.h>
|
||||
|
||||
enum class TokenType
|
||||
{
|
||||
NONE,
|
||||
MQTT_SERVER,
|
||||
};
|
||||
|
||||
class WebCfgServer
|
||||
{
|
||||
public:
|
||||
WebCfgServer();
|
||||
~WebCfgServer() = default;
|
||||
|
||||
void initialize();
|
||||
void update();
|
||||
|
||||
|
||||
private:
|
||||
void serveHtml(WiFiClient& client);
|
||||
TokenType getParameterType(char*& token);
|
||||
|
||||
WiFiServer _wifiServer;
|
||||
|
||||
bool _enabled = true;
|
||||
};
|
||||
Reference in New Issue
Block a user