You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
AutoConnect/mkdocs/apiaux.md

3.6 KiB

Constructor

AutoConnectAux

AutoConnectAux(const String& uri = String(""), const String& title = String(""), const bool menu = true, const AutoConnectElementVT addons = AutoConnectElementVT())
**Parameters**
uriURI of this custom Web Page.
titlePage title of this custom web page. It will appear on the auto connection menu and at the top of that page.
addonsReference to AutoConnectElement collection.

Public member functions

add

void add(AutoConnectElement& addon)
void add(AutoConnectElementVT addons)

Add an element to the AutoConnectAux. An added element is displayed on the custom Web page invoked from the AutoConnect menu.

getElement

template<typename T> T& getElement(const String& name)
AutoConnectElement* getElement(const String& name)

Get registered AutoConnectElement as specified name.

getElements

AutoConnectElementVT& getElements(void)

Get vector of reference of all elements.

load

bool load(const String& in)
bool load(const __FlashStringHelper* in)
bool load(Stream& in)

Load whole elements to AutoConnectAux Pages.

loadElement

bool loadElement(const String& in, const String& name = String(""))
bool loadElement(const __FlashStringHelper* in, const String& name = String(""))
bool loadElement(Stream& in, const String& name = String(""))

Load specified element.

menu

void menu(const bool post)

Set or reset the display as menu item for this AutoConnectAux.

on

void on(const AuxHandlerFunctionT handler, const AutoConnectExitOrder_t order = AC_EXIT_AHEAD)

Register the handler function of the AutoConnectAux.

**Parameters**
handlerA function that behaves when a request to the AutoConnectAux page occurs. AuxHandlerFunctionT type is defined by the following declaration.
`String handler(AutoConnectAux&, PageArgument&)`
orderSpecifies when the handler is called with the following enumeration value.
: - **AC_EXIT_AHEAD** : Called before AutoConnect generates the HTML of the page. You set the value of AutoConnectElements in the handler then its value will be displayed on the page. : - **AC_EXIT_LATER** : Called after AutoConnect generates the HTML of the page. You can append to HTML generated by AutoConnect. : - **AC_EXIT_BOTH** : Called even before generating HTML and after generated.

release

bool release(const String& name)

Release a specified AutoConnectElement.

saveElement

size_t saveElement(Stream& out, std::vector<String> const& names = {})

Write elements of AutoConnectAux to the stream.

setElementValue

bool setElementValue(const String& name, const String value)
bool setElementValue(const String& name, std::vector<String> const& values)

setTitle

void setTitle(const String& title)

Set the title string of the AutoConnectAux page.