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).
|
An HTML span element with content that can be updated from the server (not the client) More...
#include <EmbAJAX.h>
Public Member Functions | |
EmbAJAXSlider (const char *id, int16_t min, int16_t max, int16_t initial) | |
void | print () const override |
const char * | value (uint8_t which=EmbAJAXBase::Value) const override |
const char * | valueProperty (uint8_t which=EmbAJAXBase::Value) const override |
void | setValue (int16_t value) |
int16_t | intValue () const |
void | updateFromDriverArg (const char *argname) override |
![]() | |
EmbAJAXElement (const char *id) | |
const char * | id () const |
bool | sendUpdates (uint16_t since, bool first) override |
virtual bool | valueNeedsEscaping (uint8_t which=EmbAJAXBase::Value) const |
EmbAJAXElement * | toElement () override final |
![]() | |
void | setVisible (bool visible) |
void | setEnabled (bool enabled) |
virtual EmbAJAXElement * | findChild (const char *id) const |
Additional Inherited Members | |
![]() | |
enum | Property { Visibility , Enabledness , Value , FirstElementSpecificProperty , HTMLAllowed } |
![]() | |
static void | setDriver (EmbAJAXOutputDriverBase *driver) |
![]() | |
void | setBasicProperty (uint8_t num, bool status) override |
bool | basicProperty (uint8_t num) const |
void | setChanged () |
bool | changed (uint16_t since) |
void | printTextInput (size_t size, const char *value) const |
![]() | |
void | printChildren (EmbAJAXBase **children, size_t num) const |
bool | sendUpdates (EmbAJAXBase **children, size_t num, uint16_t since, bool first) |
EmbAJAXElement * | findChild (EmbAJAXBase **children, size_t num, const char *id) const |
void | printPage (EmbAJAXBase **children, size_t num, const char *_title, const char *_header, uint16_t _min_interval) const |
void | handleRequest (EmbAJAXBase **children, size_t num, void(*change_callback)()) |
![]() | |
byte | _flags |
const char * | _id |
![]() | |
static EmbAJAXOutputDriverBase * | _driver |
static char | itoa_buf [8] |
constexpr static const char | null_string [1] |
An HTML span element with content that can be updated from the server (not the client)
|
overridevirtual |
override this in your derived class to allow updates to be propagated from client to server (if wanted). The implementation need not call setChanged().
Reimplemented from EmbAJAXElement.
|
overridevirtual |
const char representation of the current server side value. Must be implemented in derived class. This base class handles visibility and enabledness, only. Do call the base implementation for any "which" that is not handled in your derived class.
Reimplemented from EmbAJAXElement.
|
overridevirtual |
The JS property that will have to be set on the client. Must be implemented in derived class. This base class handles visibility and enabledness, only. Do call the base implementation for any "which" that is not handled in your derived class.
Reimplemented from EmbAJAXElement.