Output driver implementation. This implementation should work for most arduino web servers with minimal adjustmnets.
More...
#include <EmbAJAXOutputDriverGeneric.h>
|
| EmbAJAXOutputDriverGeneric (EmbAJAXOutputDriverWebServerClass *server) |
|
void | printHeader (bool html) override |
|
void | printContent (const char *content) override |
|
const char * | getArg (const char *name, char *buf, int buflen) override |
|
void | installPage (EmbAJAXPageBase *page, const char *path, void(*change_callback)()=0) override |
|
void | loopHook () override |
|
uint16_t | revision () const |
|
uint16_t | setChanged () |
|
void | nextRevision () |
|
void | printFiltered (const char *value, QuoteMode quoted, bool HTMLescaped) |
|
void | printJSQuoted (const char *value) |
|
void | printHTMLQuoted (const char *value) |
|
void | printAttribute (const char *name, const char *value) |
|
void | printAttribute (const char *name, const int32_t value) |
|
void | _printContentF (const char *fmt,...) |
|
void | _printContentF (const __FlashStringHelper *,...) |
|
Output driver implementation. This implementation should work for most arduino web servers with minimal adjustmnets.
◆ EmbAJAXOutputDriverGeneric()
EmbAJAXOutputDriverGeneric::EmbAJAXOutputDriverGeneric |
( |
EmbAJAXOutputDriverWebServerClass * |
server | ) |
|
|
inline |
To register an WebServer with EmbAJAX, simply create a (globaL) instance of this class.
- Parameters
-
server | pointer to the server. The class of this is usually an auto-detected sensible default for the platform, e.g. ESP8266WebServer on ESP8266. |
◆ installPage()
void EmbAJAXOutputDriverGeneric::installPage |
( |
EmbAJAXPageBase * |
page, |
|
|
const char * |
path, |
|
|
void(*)() |
change_callback = 0 |
|
) |
| |
|
inlineoverridevirtual |
◆ loopHook()
void EmbAJAXOutputDriverGeneric::loopHook |
( |
| ) |
|
|
inlineoverridevirtual |
Insert this hook into loop(). Takes care of the appropriate server calls, if needed.
Implements EmbAJAXOutputDriverBase.
The documentation for this class was generated from the following file: