#include <esp-fs-webserver.h>
|
| FSWebServer (fs::FS &fs, WebServerClass &server) |
|
bool | begin (const char *path=nullptr) |
|
void | run () |
|
void | addHandler (const Uri &uri, HTTPMethod method, WebServerClass::THandlerFunction fn) |
|
void | addHandler (const Uri &uri, WebServerClass::THandlerFunction handler) |
|
void | setCaptiveWebage (const char *url) |
|
IPAddress | setAPmode (const char *ssid, const char *psk) |
|
IPAddress | startWiFi (uint32_t timeout, const char *apSSID, const char *apPsw) |
|
WebServerClass * | getRequest () |
|
bool | clearOptions () |
|
void | addOptionBox (const char *boxTitle) |
|
void | addHTML (const char *html, const char *id) |
|
void | addCSS (const char *css) |
|
void | addJavascript (const char *script) |
|
void | addDropdownList (const char *label, const char **array, size_t size) |
|
template<typename T > |
void | addOption (fs::FS &fs, const char *label, T val, bool hidden=false) |
|
template<typename T > |
void | addOption (const char *label, T val, double d_min, double d_max, double step) |
|
template<typename T > |
void | addOption (const char *label, T val, bool hidden=false, double d_min=MIN_F, double d_max=MAX_F, double step=1.0) |
|
template<typename T > |
bool | getOptionValue (const char *label, T &var) |
|
template<typename T > |
bool | saveOptionValue (const char *label, T val) |
|
Definition at line 71 of file esp-fs-webserver.h.
◆ FSWebServer()
FSWebServer::FSWebServer |
( |
fs::FS & |
fs, |
|
|
WebServerClass & |
server |
|
) |
| |
◆ addCSS()
void FSWebServer::addCSS |
( |
const char * |
css | ) |
|
|
inline |
◆ addDropdownList()
void FSWebServer::addDropdownList |
( |
const char * |
label, |
|
|
const char ** |
array, |
|
|
size_t |
size |
|
) |
| |
◆ addHandler() [1/2]
void FSWebServer::addHandler |
( |
const Uri & |
uri, |
|
|
HTTPMethod |
method, |
|
|
WebServerClass::THandlerFunction |
fn |
|
) |
| |
◆ addHandler() [2/2]
void FSWebServer::addHandler |
( |
const Uri & |
uri, |
|
|
WebServerClass::THandlerFunction |
handler |
|
) |
| |
◆ addHTML()
void FSWebServer::addHTML |
( |
const char * |
html, |
|
|
const char * |
id |
|
) |
| |
|
inline |
◆ addJavascript()
void FSWebServer::addJavascript |
( |
const char * |
script | ) |
|
|
inline |
◆ addOption() [1/3]
template<typename T >
void FSWebServer::addOption |
( |
const char * |
label, |
|
|
T |
val, |
|
|
bool |
hidden = false , |
|
|
double |
d_min = MIN_F , |
|
|
double |
d_max = MAX_F , |
|
|
double |
step = 1.0 |
|
) |
| |
|
inline |
◆ addOption() [2/3]
template<typename T >
void FSWebServer::addOption |
( |
const char * |
label, |
|
|
T |
val, |
|
|
double |
d_min, |
|
|
double |
d_max, |
|
|
double |
step |
|
) |
| |
|
inline |
◆ addOption() [3/3]
template<typename T >
void FSWebServer::addOption |
( |
fs::FS & |
fs, |
|
|
const char * |
label, |
|
|
T |
val, |
|
|
bool |
hidden = false |
|
) |
| |
|
inline |
◆ addOptionBox()
void FSWebServer::addOptionBox |
( |
const char * |
boxTitle | ) |
|
|
inline |
◆ begin()
bool FSWebServer::begin |
( |
const char * |
path = nullptr | ) |
|
◆ clearOptions()
bool FSWebServer::clearOptions |
( |
| ) |
|
|
inline |
◆ getOptionValue()
template<typename T >
bool FSWebServer::getOptionValue |
( |
const char * |
label, |
|
|
T & |
var |
|
) |
| |
|
inline |
◆ getRequest()
WebServerClass * FSWebServer::getRequest |
( |
| ) |
|
◆ run()
void FSWebServer::run |
( |
| ) |
|
◆ saveOptionValue()
template<typename T >
bool FSWebServer::saveOptionValue |
( |
const char * |
label, |
|
|
T |
val |
|
) |
| |
|
inline |
◆ setAPmode()
IPAddress FSWebServer::setAPmode |
( |
const char * |
ssid, |
|
|
const char * |
psk |
|
) |
| |
◆ setCaptiveWebage()
void FSWebServer::setCaptiveWebage |
( |
const char * |
url | ) |
|
◆ startWiFi()
IPAddress FSWebServer::startWiFi |
( |
uint32_t |
timeout, |
|
|
const char * |
apSSID, |
|
|
const char * |
apPsw |
|
) |
| |
◆ webserver
WebServerClass* FSWebServer::webserver |
The documentation for this class was generated from the following files: