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).
Public Member Functions | Protected Attributes | List of all members
EmbAJAXStatic Class Reference

A static chunk of HTML. More...

#include <EmbAJAX.h>

Inheritance diagram for EmbAJAXStatic:
Inheritance graph
[legend]
Collaboration diagram for EmbAJAXStatic:
Collaboration graph
[legend]

Public Member Functions

 EmbAJAXStatic (const char *content)
 
void print () const override
 
- Public Member Functions inherited from EmbAJAXBase
virtual bool sendUpdates (uint16_t since, bool first)
 
virtual EmbAJAXElementtoElement ()
 
void setVisible (bool visible)
 
void setEnabled (bool enabled)
 
virtual EmbAJAXElementfindChild (const char *id) const
 

Protected Attributes

const char * _content
 

Additional Inherited Members

- Public Types inherited from EmbAJAXBase
enum  Property {
  Visibility , Enabledness , Value , FirstElementSpecificProperty ,
  HTMLAllowed
}
 
- Static Public Member Functions inherited from EmbAJAXBase
static void setDriver (EmbAJAXOutputDriverBase *driver)
 
- Protected Member Functions inherited from EmbAJAXBase
virtual void setBasicProperty (uint8_t num, bool status)
 
void printChildren (EmbAJAXBase **children, size_t num) const
 
bool sendUpdates (EmbAJAXBase **children, size_t num, uint16_t since, bool first)
 
EmbAJAXElementfindChild (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)())
 
- Static Protected Attributes inherited from EmbAJAXBase
static EmbAJAXOutputDriverBase_driver
 
static char itoa_buf [8]
 
constexpr static const char null_string [1]
 

Detailed Description

A static chunk of HTML.

This class represents a chunk of static HTML that will not be changed / cannot be interacted with. Neither from the client, nor from the server. This does not have to correspond to a complete HTML element, it can be any fragment.

Constructor & Destructor Documentation

◆ EmbAJAXStatic()

EmbAJAXStatic::EmbAJAXStatic ( const char *  content)
inline

ctor. Note: Content string is not copied. Don't make this a temporary.


The documentation for this class was generated from the following file: