diff --git a/src/AutoConnect.h b/src/AutoConnect.h index 4f3b4be..5dc5492 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -53,6 +53,7 @@ typedef enum AC_ONBOOTURI { /**< An enumerated type of the designated menu items. */ typedef enum AC_MENUITEM { + AC_MENUITEM_NONE = 0x0000, AC_MENUITEM_CONFIGNEW = 0x0001, AC_MENUITEM_OPENSSIDS = 0x0002, AC_MENUITEM_DISCONNECT = 0x0004, diff --git a/src/AutoConnectPage.cpp b/src/AutoConnectPage.cpp index 4acd000..21a16a5 100644 --- a/src/AutoConnectPage.cpp +++ b/src/AutoConnectPage.cpp @@ -1360,22 +1360,41 @@ String AutoConnect::_token_CURRENT_SSID(PageArgument& args) { return ssid; } +/** + * Generate AutoConnect menu item configured by AutoConnectConfig::attachMenu. + * @param item An enumerated value for the generating item configured in AutoConnectConfig. + * @return HTML string of a li tag with the menu item. + */ String AutoConnect::_attachMenuItem(const AC_MENUITEM_t item) { - String liItem = String(F("