24#ifdef ARDUINO_ARCH_ESP32
27 #include "WebServer.h"
29 #include "ESP8266WebServer.h"
36#ifdef ARDUINO_ARCH_ESP32
37 #include "WebServer.h"
38 #define uEspConfigLib_WebServer WebServer
40 #include "ESP8266WebServer.h"
41 #define uEspConfigLib_WebServer ESP8266WebServer
46 uEspConfigLibList() : next(0), name(0), description(0), defaultValue(0), value(0) {};
54#define uEspConfigLib_free(field) if (field != 0) { free(field); field = 0; }
55#define uEspConfigLib_WebServer_sendContent(data) if (*data != 0) { server->sendContent(data); }
74 void addOption(
const char *,
const char *,
const char *);
83 bool set(
const char *,
const char *);
99 bool clear(
const char *);
184 void _parseConfigLine(String);
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib - FileSystem interface...
Definition: uEspConfigLibFSInterface.h:50
The deffinitive ESP32 and ESP8266 configuration Arduino library, uEspConfigLib.
Definition: uEspConfigLib.h:57
char * getPointer(const char *)
Gets a char pointer to the current value of a configuration option.
Definition: uEspConfigLib.cpp:138
void handleConfigRequestJson(uEspConfigLib_WebServer *)
Handles a configuration JSON request.
Definition: uEspConfigLib.cpp:242
void handleSaveConfig(uEspConfigLib_WebServer *)
Handles a save configuration request.
Definition: uEspConfigLib.cpp:294
void handleConfigRequestHtml(uEspConfigLib_WebServer *, const char *="/uConfigLib/saveConfig")
Handles a configuration HTML form request.
Definition: uEspConfigLib.cpp:172
bool set(const char *, const char *)
Changes a configuration option current value.
Definition: uEspConfigLib.cpp:118
bool loadConfigFile()
Loads config file from FileSystem and processes it.
Definition: uEspConfigLib.cpp:346
bool clear(const char *)
Changes a configuration option to its default value.
Definition: uEspConfigLib.cpp:153
void addOption(const char *, const char *, const char *)
Defines a configuration option.
Definition: uEspConfigLib.cpp:80
bool saveConfigFile()
Recreates and overwrites config file to FileSystem with current configurations.
Definition: uEspConfigLib.cpp:365
Definition: uEspConfigLib.h:45