EmbAJAX
Simplistic framework for creating and handling displays and controls on a web page served by an embeddable device (Arduino or other microcontroller with Arduino support).
|
Output driver implementation. This implementation should work for most arduino web servers with minimal adjustmnets. More...
#include <EmbAJAXOutputDriverGeneric.h>
Public Member Functions | |
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,...) |
Additional Inherited Members | |
![]() | |
enum | QuoteMode { NotQuoted , JSQuoted , HTMLQuoted } |
Output driver implementation. This implementation should work for most arduino web servers with minimal adjustmnets.
|
inline |
To register an WebServer with EmbAJAX, simply create a (globaL) instance of this class.
server | pointer to the server. The class of this is usually an auto-detected sensible default for the platform, e.g. ESP8266WebServer on ESP8266. |
|
inlineoverridevirtual |
Set up the given page to be served on the given path.
change_callback | See EmbAJAXPage::handleRequest() for details. |
Implements EmbAJAXOutputDriverBase.
|
inlineoverridevirtual |
Insert this hook into loop(). Takes care of the appropriate server calls, if needed.
Implements EmbAJAXOutputDriverBase.