2.9 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.
menu
void menu(const bool post)
Set or reset the display as menu item for this AutoConnectAux.
release
bool release(const String& name)
Release a specified AutoConnectElement.
bool setElementValue(const String& name, const String value); /< Set value to specified element */ bool setElementValue(const String& name, std::vector const& values); /< Set values collection to specified element */ void setTitle(const String title) { _title = title; } /< Set a title of the auxiliary page */ void on(const AuxHandlerFunctionT handler, const AutoConnectExitOrder_t order = AC_EXIT_AHEAD) { _handler = handler; _order = order; } /< Set user handler */ bool load(const String& in); /< Load whole elements to AutoConnectAux Page / bool load(const __FlashStringHelper in); /< Load whole elements to AutoConnectAux Page */ bool load(Stream& in); /< Load whole elements to AutoConnectAux Page */ bool loadElement(const String& in, const String& name = String("")); /< Load specified element / bool loadElement(const __FlashStringHelper in, const String& name = String("")); /< Load specified element */ bool loadElement(Stream& in, const String& name = String("")); /< Load specified element */ size_t saveElement(Stream& out, std::vector const& names = {}); /**< Write elements of AutoConnectAux to the stream */