9#ifndef _EL_CLIENT_WEB_SERVER_H_
10#define _EL_CLIENT_WEB_SERVER_H_
137 void setArgInt(
const char * name, int32_t value);
139 void setArgInt(
const __FlashStringHelper * name, int32_t value);
141 void setArgJson(
const char * name,
const char * value);
143 void setArgJson(
const __FlashStringHelper * name,
const char * value);
145 void setArgJson(
const __FlashStringHelper * name,
const __FlashStringHelper * value);
147 void setArgString(
const char * name,
const char * value);
149 void setArgString(
const __FlashStringHelper * name,
const char * value);
151 void setArgString(
const __FlashStringHelper * name,
const __FlashStringHelper * value);
155 void setArgBoolean(
const __FlashStringHelper * name, uint8_t value);
159 void setArgNull(
const __FlashStringHelper * name);
163 void setArgFloat(
const __FlashStringHelper * name,
float f);
191 static void webServerPacketHandler(
void * packet);
195 uint8_t remote_ip[4];
196 uint16_t remote_port;
struct URL_HANDLER URLHandler
Definitions for ELClient.
Core Utility - Templated Function Pointer Class.
void setArgString(const char *name, const char *value)
Sets string value of a field.
void setArgBoolean(const char *name, uint8_t value)
Sets boolean value of a field.
void setArgInt(const char *name, int32_t value)
Sets integer value of a field.
void setup()
Initializes web-server.
float getArgFloat()
Returns an HTML field value as float.
void setArgJson(const char *name, const char *value)
Sets JSON value of a field.
int32_t getArgInt()
Returns an HTML field value as integer.
uint8_t getArgBoolean()
Returns an HTML field value as boolean.
void setArgFloat(const char *name, float f)
Sets float value of a field.
void destroyURLHandler(URLHandler *handler)
Unregisters an destroys an URL handler.
char * getArgString()
Returns an HTML field value as string.
static ELClientWebServer * getInstance()
Returns the singleton web-server instance.
void setArgNull(const char *name)
Sets null value to a field.
URLHandler * createURLHandler(const char *URL)
Creates and registers an URL handler.
API abstraction for a Function Pointers.
FP< void, char * > setFieldCb
callback for setting a field from a HTML form
FP< void, char * > loadCb
Callback for HTML page loading.
struct URL_HANDLER * next
next handler
FP< void, char * > buttonCb
callback for a HTML button press
String URL
the URL to handle
FP< void, char * > refreshCb
Callback for HTML page refresh.