## Constructor ### AutoConnectAux ```cpp 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 ```cpp void add(AutoConnectElement& addon) ``` ```cpp 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 ```cpp template T& getElement(const String& name) ``` ```cpp AutoConnectElement* getElement(const String& name) ``` Get registered AutoConnectElement as specified name. ### getElements ```cpp AutoConnectElementVT& getElements(void) ``` Get vector of reference of all elements. ### load ```cpp bool load(const String& in) ``` ```cpp bool load(const __FlashStringHelper* in) ``` ```cpp bool load(Stream& in) ``` Load whole elements to AutoConnectAux Pages. ### loadElement ```cpp bool loadElement(const String& in, const String& name = String("")) ``` ```cpp bool loadElement(const __FlashStringHelper* in, const String& name = String("")) ``` ```cpp bool loadElement(Stream& in, const String& name = String("")) ``` Load specified element. ### menu ```cpp void menu(const bool post) ``` Set or reset the display as menu item for this AutoConnectAux. ### on ```cpp 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 ```cpp bool release(const String& name) ``` Release a specified AutoConnectElement. ### saveElement ```cpp size_t saveElement(Stream& out, std::vector const& names = {}) ``` Write elements of AutoConnectAux to the stream. ### setElementValue ```cpp bool setElementValue(const String& name, const String value) ``` ```cpp bool setElementValue(const String& name, std::vector const& values) ``` ### setTitle ```cpp void setTitle(const String& title) ``` Set the title string of the AutoConnectAux page.