connect to configured mqtt broker

This commit is contained in:
technyon
2022-03-27 10:20:23 +02:00
parent 5941a98f7e
commit ba864e0b67
7 changed files with 52 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <WiFiServer.h>
#include <Preferences.h>
enum class TokenType
{
@@ -11,7 +12,7 @@ enum class TokenType
class WebCfgServer
{
public:
WebCfgServer();
WebCfgServer(Preferences* preferences);
~WebCfgServer() = default;
void initialize();
@@ -23,6 +24,7 @@ private:
TokenType getParameterType(char*& token);
WiFiServer _wifiServer;
Preferences* _preferences;
bool _enabled = true;
};