From 769428311138e7195aafc11558d81921d20e1841 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 2 Apr 2020 00:40:19 +0900 Subject: [PATCH] Changed the location of the menuItems --- mkdocs/apiconfig.md | 48 ++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/mkdocs/apiconfig.md b/mkdocs/apiconfig.md index 330ffbb..f9cba0a 100644 --- a/mkdocs/apiconfig.md +++ b/mkdocs/apiconfig.md @@ -40,30 +40,6 @@ Sets IP address for Soft AP in captive portal. When AutoConnect fails the initia
IPAddressThe default value is **172.217.28.1**
-### menuItems - -Configure applying items of the [AutoConnect menu](menu.md). You can arbitrarily combine valid menus by coordinating the menuItems value. -
-
**Type**
-
uint16_tIt provides the combined **AC_MENUITEM_t** value of the item to apply to the AutoConnect menu.
Specify the value calculated from the **logical OR** by the AC_MENUITEM_t value of each item applied as a menu. It affects not only disappear the items from the menu also invalidates the URI they have. As a consequence, even if it accesses the URL directly will occur a 404 error.
The default value is logical OR of AC_MENUITEM_CONFIGNEW, AC_MENUITEM_OPENSSIDS, AC_MENUITEM_DISCONNECT, AC_MENUITEM_RESET and AC_MENUITEM_HOME.
-
**Value**
-
AC_MENUITEM_NONE No assign items except for the AutoConnectAux page item.
-
AC_MENUITEM_CONFIGNEW Appends [Configure new AP](menu.md#config-new-ap) item.
-
AC_MENUITEM_OPENSSIDS Appends [Open SSIDs](menu.md#open-ssids) item.
-
AC_MENUITEM_DISCONNECT Appends [Disconnect](menu.md#disconnect) item.
-
AC_MENUITEM_RESET Appends [Reset...](menu.md#reset) item.
-
AC_MENUITEM_HOME Appends [HOME](menu.md#home) item.
-
AC_MENUITEM_DEVINFO Appends the **Device info** item which links to [AutoConnect statistics page](menu.md##where-the-from).
-
- -!!! info "How to specify the value of the menu items" - An menuItems accepts the logical OR of AC_MENUITEM_t type value. For example, to enable only Open SSIDs and HOME items, specify: - ```cpp - AutoConnectConfig config; - config.menuItems = AC_MENUITEM_OPENSSIDS | AC_MENUITEM_HOME; - ``` - However, even if you specify like the above, the AutoConnectAux page items still display on the menu. To remove the AutoConnectAux items, use the [AutoConnectAux::menu](apiaux.md#menu) function. - ### autoReconnect Automatically will try to reconnect with the past established access point (BSSID) when the current configured SSID in ESP8266/ESP32 could not be connected. By enabling this option, *AutoConnect::begin()* function will attempt to reconnect to a known access point using credentials stored in the flash, even if the connection failed by current SSID. @@ -213,6 +189,30 @@ Disable the first WiFi.begin() and start the captive portal. If this option is e
falseEnable the first WiFi.begin() and it will start captive portal when connection failed. This is default.
+### menuItems + +Configure applying items of the [AutoConnect menu](menu.md). You can arbitrarily combine valid menus by coordinating the menuItems value. +
+
**Type**
+
uint16_tIt provides the combined **AC_MENUITEM_t** value of the item to apply to the AutoConnect menu.
Specify the value calculated from the **logical OR** by the AC_MENUITEM_t value of each item applied as a menu. It affects not only disappear the items from the menu also invalidates the URI they have. As a consequence, even if it accesses the URL directly will occur a 404 error.
The default value is logical OR of AC_MENUITEM_CONFIGNEW, AC_MENUITEM_OPENSSIDS, AC_MENUITEM_DISCONNECT, AC_MENUITEM_RESET and AC_MENUITEM_HOME.
+
**Value**
+
AC_MENUITEM_NONE No assign items except for the AutoConnectAux page item.
+
AC_MENUITEM_CONFIGNEW Appends [Configure new AP](menu.md#config-new-ap) item.
+
AC_MENUITEM_OPENSSIDS Appends [Open SSIDs](menu.md#open-ssids) item.
+
AC_MENUITEM_DISCONNECT Appends [Disconnect](menu.md#disconnect) item.
+
AC_MENUITEM_RESET Appends [Reset...](menu.md#reset) item.
+
AC_MENUITEM_HOME Appends [HOME](menu.md#home) item.
+
AC_MENUITEM_DEVINFO Appends the **Device info** item which links to [AutoConnect statistics page](menu.md##where-the-from).
+
+ +!!! info "How to specify the value of the menu items" + An menuItems accepts the logical OR of AC_MENUITEM_t type value. For example, to enable only Open SSIDs and HOME items, specify: + ```cpp + AutoConnectConfig config; + config.menuItems = AC_MENUITEM_OPENSSIDS | AC_MENUITEM_HOME; + ``` + However, even if you specify like the above, the AutoConnectAux page items still display on the menu. To remove the AutoConnectAux items, use the [AutoConnectAux::menu](apiaux.md#menu) function. + ### netmask Sets subnet mask for Soft AP in captive portal. When AutoConnect fails the initial WiFi.begin, it starts the captive portal with the IP address specified this.