Corrected the description of immediateStart #196

pull/205/head
Hieromon Ikasamo 4 years ago
parent f6bac9ba9b
commit 3f1c695e4e
  1. 51
      mkdocs/advancedusage.md
  2. 14
      mkdocs/apiconfig.md
  3. 195
      mkdocs/images/process_begin.svg
  4. 5
      mkdocs/lsbegin.md

@ -6,7 +6,7 @@ Registering the "not found" handler is a different way than ESP8266WebServer (We
### <i class="fa fa-caret-right"></i> Access to saved credentials
AutoConnect stores the established WiFi connection in the flash of the ESP8266/ESP32 module and equips the class to access it from the sketch. You can read, write or erase the credentials using this class individually. It's [AutoConnectCredential](credit.md#autoconnectcredential) class which provides the access method to the saved credentials in the flash. Refer to section [Saved credentials access](credit.md) for details.
AutoConnect stores the established WiFi connection in the flash of the ESP8266/ESP32 module and equips the class to access it from the Sketch. You can read, write or erase the credentials using this class individually. It's [AutoConnectCredential](credit.md#autoconnectcredential) class which provides the access method to the saved credentials in the flash. Refer to section [Saved credentials access](credit.md) for details.
!!! note "Where to store credentials in ESP32 with AutoConnect v1.0.0 or later"
Since v1.0.0, credentials are stored in nvs of ESP32. AutoConnect v1.0.0 or later accesses the credentials area using the **Preferences** class with the arduino esp-32 core. So in ESP32, the credentials are not in the EEPROM, it is in the namespace **AC_CREDT** of the nvs. See [Saved credentials access](credit.md) for details.
@ -74,7 +74,7 @@ Portal.begin();
### <i class="fa fa-caret-right"></i> Captive portal start detection
The captive portal will only be activated if the first *WiFi::begin* fails. Sketch can detect with the [*AutoConnect::onDetect*](api.md#ondetect) function that the captive portal has started. For example, the sketch can be written like as follows that turns on the LED at the start captive portal.
The captive portal will only be activated if 1st-WiFi::begin fails. Sketch can detect with the [*AutoConnect::onDetect*](api.md#ondetect) function that the captive portal has started. For example, the Sketch can be written like as follows that turns on the LED at the start captive portal.
```cpp hl_lines="3 13"
AutoConnect Portal;
@ -100,9 +100,36 @@ void loop() {
}
```
### <i class="fa fa-caret-right"></i> Captive portal starting control
Basically, the captive portal launch is subject to 1st-WiFi.begin result, but Sketch can control it. The Sketch can direct the following four actions by configuring AutoConnect with two parameters, [*AutoConnectConfig::immediateStart*](apiconfig.md#immediatestart) and [*AutoConnectConfig::autoRise*](apiconfig.md#autorise).
<table>
<tr>
<th rowspan="2" align="center">AutoConnectConfig<br>::immediateStart</th>
<th colspan="2" align="center">AutoConnectConfig::autoRise</th>
</tr>
<tr>
<td>true</td>
<td>false</td>
</tr>
<tr>
<td>true</td>
<td>Skip 1st-WiFi.begin<br>ESP module becomes SoftAP and the captive portal starts immediately.<br></td>
<td>Not attempt WiFi connection.<br>Only WebServer will start in STA mode.</td>
</tr>
<tr>
<td>false</td>
<td>Attempts WiFi connection in STA mode.<br>In some cases, the autoReconnect may restore the connection even if 1st-WiFiBeing fails.<br>If the connection is completely lost, the captive portal will be launched.<br><b>This is the default.</b></td>
<td>Attempts WiFi connection in STA mode.<br>In some cases, the autoReconnect may restore the connection even if 1st-WiFiBeing fails.<br>ESP module stays in STA mode and WebServer will start.</td>
</tr>
</table>
### <i class="fa fa-caret-right"></i> Captive portal timeout control
AutoConnect has two parameters for timeout control. One is a timeout value used when trying to connect to the specified AP. It behaves the same as general timeout control in connection attempt by WiFi.begin. This control is specified by the third parameter of [*AutoConnect::begin*](api.md#begin). The default value is macro defined by [**AUTOCONNECT_TIMEOUT**](api.md#defined-macros) in the **AutoConnectDefs.h** file.
Once AutoConnect has entered the captive portal state due to the above conditions, it will not exit until a WiFi connection can be established. (But that is the default behavior)
The Sketch can abort the [*AutoConnect::begin*](api.md#begin) by setting the captive portal timeout and returns control to Sketch. AutoConnect has two parameters for timeout control. One is a timeout value used when trying to connect to the specified AP. It behaves the same as general timeout control in connection attempt by WiFi.begin. This control is specified by the third parameter of [*AutoConnect::begin*](api.md#begin). The default value is macro defined by [**AUTOCONNECT_TIMEOUT**](api.md#defined-macros) in the **AutoConnectDefs.h** file.
The other timeout control is for the captive portal itself. It is useful when you want to continue sketch execution with offline even if the WiFi connection is not possible. You can also combine it with the [**immediateStart**](#on-demand-start-the-captive-portal) option to create sketches with high mobility.
@ -159,7 +186,7 @@ void loop() {
}
```
There is another option related to timeout in AutoConnectConfig. It can make use of the captive portal function even after a timeout. The [*AutoConnectConfig::retainPortal*](apiconfig.md#retainportal) option will not stop the SoftAP when the captive portal is timed out. If you enable the ratainPortal option, you can try to connect to the AP at any time while continuing to sketch execution with offline even after the captive portal timed-out. Compared to the above code specified no option with the following example code, the captive portal will remain available even after a timeout without changing the logic of the sketch.
There is another option related to timeout in AutoConnectConfig. It can make use of the captive portal function even after a timeout. The [*AutoConnectConfig::retainPortal*](apiconfig.md#retainportal) option will not stop the SoftAP when the captive portal is timed out. If you enable the ratainPortal option, you can try to connect to the AP at any time while continuing to sketch execution with offline even after the captive portal timed-out. Compared to the above code specified no option with the following example code, the captive portal will remain available even after a timeout without changing the logic of the Sketch.
```cpp hl_lines="10"
#include <ESP8266WiFi.h>
@ -251,7 +278,7 @@ You can change the label text for each menu item but cannot change them at run t
1. Overwrite the label literal of library source code directly.
You can change the label of the AutoConnect menu item by rewriting the default label literal in [AutoConnectLabels.h](https://github.com/Hieromon/AutoConnect/blob/master/src/AutoConnectLabels.h) macros. However, changing menu items literal influences all the sketch's build scenes.
You can change the label of the AutoConnect menu item by rewriting the default label literal in [AutoConnectLabels.h](https://github.com/Hieromon/AutoConnect/blob/master/src/AutoConnectLabels.h) macros. However, changing menu items literal influences all the Sketch's build scenes.
```cpp
#define AUTOCONNECT_MENULABEL_CONFIGNEW "Configure new AP"
@ -276,7 +303,7 @@ You can change the label text for each menu item but cannot change them at run t
### <i class="fa fa-caret-right"></i> Combination with mDNS
With [mDNS library](https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266mDNS), you can access to ESP8266 by name instead of IP address after connection. The sketch can start the MDNS responder after [*AutoConnect::begin*](api.md#begin).
With [mDNS library](https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266mDNS), you can access to ESP8266 by name instead of IP address after connection. The Sketch can start the MDNS responder after [*AutoConnect::begin*](api.md#begin).
```cpp hl_lines="8 9"
#include <ESP8266WiFi.h>
@ -329,7 +356,7 @@ Combining these two parameters allows you to filter the destination AP when mult
<td>Restoring static IPs suitable for the SSID from saved credentials</td>
</tr>
<tr>
<td>Specified with the sketch</td>
<td>Specified with the Sketch</td>
<td>Not efective</td>
<td>By AutoConnect::begin parameters</td>
<td>Use the specified value of AutoConnectConfig</td>
@ -359,7 +386,7 @@ You can output AutoConnect monitor messages to the **Serial**. A monitor message
### <i class="fa fa-caret-right"></i> Disable the captive portal
It can also prevent the captive portal from starting even if the connection at the first *WiFi.begin* fails. In this case, [*AutoConnect::begin*](api.md#begin) behaves same as *WiFi.begin*.
It can also prevent the captive portal from starting even if the connection at the 1st-WiFi.begin fails. In this case, [*AutoConnect::begin*](api.md#begin) behaves same as *WiFi.begin*.
For disabling the captive portal, [**autoRise**](apiconfig.md#autorise) sets to false with [AutoConnectConfig](apiconfig.md).
@ -513,7 +540,7 @@ server.send(200, "text/plain", "Hello, world");
### <i class="fa fa-caret-right"></i> Usage for automatically instantiated ESP8266WebServer/WebServer
The sketch can handle URL requests using ESP8266WebServer or WebServer that AutoConnect started internally. ESP8266WebServer/WebServer instantiated dynamically by AutoConnect can be referred to by [*AutoConnect::host*](api.md#host) function. The sketch can use the '**on**' function, '**send**' function, '**client**' function and others by ESP8266WebServer/WebServer reference of its return value.
The Sketch can handle URL requests using ESP8266WebServer or WebServer that AutoConnect started internally. ESP8266WebServer/WebServer instantiated dynamically by AutoConnect can be referred to by [*AutoConnect::host*](api.md#host) function. The Sketch can use the '**on**' function, '**send**' function, '**client**' function and others by ESP8266WebServer/WebServer reference of its return value.
```cpp hl_lines="8 9 13 14 20 21 27"
#include <ESP8266WiFi.h>
@ -551,7 +578,7 @@ void loop() {
```
!!! note "ESP8266WebServer/WebServer function should be called after AutoConnect::begin"
The sketch cannot refer to an instance of ESP8266WebServer/WebServer until AutoConnect::begin completes successfully.
The Sketch cannot refer to an instance of ESP8266WebServer/WebServer until AutoConnect::begin completes successfully.
!!! warning "Do not use with ESP8266WebServer::begin or WebServer::begin"
ESP8266WebServer/WebServer is already running inside the AutoConnect.
@ -591,7 +618,7 @@ AutoConnectConfig can specify the following runtime behavior:
<img src="images/menu_home.png" />
The sketch HOME path is closely related to the [bootUri](apiconfig.md#booturi) that specifies the access path on module restart. AutoConnect has the following three parameters concerning control the URIs:
The Sketch HOME path is closely related to the [bootUri](apiconfig.md#booturi) that specifies the access path on module restart. AutoConnect has the following three parameters concerning control the URIs:
- **AUTOCONNECT_URI**
The **ROOT** of AutoConnect. It is defined in `AutoConnectDefs.h` and is assigned an [AutoConnect statistics screen](menu.md#where-the-from) by default.
@ -670,7 +697,7 @@ But this method is not recommended. The broadcast radio of SSID emitted from Sof
### <i class="fa fa-caret-right"></i> Configuration for Soft AP and captive portal
AutoConnect will activate SoftAP at failed the first *WiFi.begin*. It SoftAP settings are stored in [**AutoConnectConfig**](apiconfig.md#autoconnectconfig) as the following parameters. The sketch could be configured SoftAP using these parameters, refer the [AutoConnectConfig API](apiconfig.md#public-member-variables) for details.
AutoConnect will activate SoftAP at failed the 1st-WiFi.begin. It SoftAP settings are stored in [**AutoConnectConfig**](apiconfig.md#autoconnectconfig) as the following parameters. The Sketch could be configured SoftAP using these parameters, refer the [AutoConnectConfig API](apiconfig.md#public-member-variables) for details.
### <i class="fa fa-caret-right"></i> Configure WiFi channel

@ -70,7 +70,7 @@ Reset ESP8266 module automatically after WLAN disconnected.
### <i class="fa fa-caret-right"></i> autoRise
Captive portal activation switch. False for disabling the captive portal. It prevents starting the captive portal even if the connection at the first *WiFi.begin* fails.
Captive portal activation switch. False for disabling the captive portal. It prevents starting the captive portal even if the connection at the 1st-WiFi.begin fails.
<dl class="apidl">
<dt>**Type**</dt>
<dd>bool</dd>
@ -112,7 +112,7 @@ This option is valid only for ESP8266 or ESP32 arduino core 1.0.2 earlier.
</dl>
!!! warning "It will conflict with user data."
If the sketch leaves this offset at zero, it will conflict the storage area of credentials with the user sketch owned data. It needs to use the behind of credential area.
If the Sketch leaves this offset at zero, it will conflict the storage area of credentials with the user sketch owned data. It needs to use the behind of credential area.
### <i class="fa fa-caret-right"></i> channel
@ -180,13 +180,13 @@ Sets the station host name of ESP8266/ESP32.
### <i class="fa fa-caret-right"></i> immediateStart
Disable the first WiFi.begin() and start the captive portal. If this option is enabled, the module will be in AP_STA mode and the captive portal will be activated regardless of [**AutoConnectConfig::autoRise**](apiconfig.md#autorise) specification.
Disable the 1st-WiFi.begin and start the captive portal. If this option is enabled, the module will be in AP_STA mode and the captive portal. The evaluation rank of this parameter is lower than the [**AutoConnectConfig::autoRise**](apiconfig.md#autorise). Even if immediateStart is true, the captive portal will not launch if autoRise is false.
<dl class="apidl">
<dt>**Type**</dt>
<dd>bool</dd>
<dt>**Value**</dt>
<dd><span class="apidef">true</span><span class="apidesc">Start the captive portal with [**AutoConnect::begin**](api.md#begin).</span></dd>
<dd><span class="apidef">false</span><span class="apidesc">Enable the first WiFi.begin() and it will start captive portal when connection failed. This is default.</span></dd>
<dd><span class="apidef">false</span><span class="apidesc">Enable the 1st-WiFi.begin and it will start captive portal when connection failed. This is default.</span></dd>
</dl>
### <i class="fa fa-caret-right"></i> menuItems
@ -232,7 +232,7 @@ Sets subnet mask for Soft AP in captive portal. When AutoConnect fails the initi
### <i class="fa fa-caret-right"></i> ota
Specifies to import the built-in OTA update class into the sketch. When this option is enabled, an **Update** item will appear in the AutoConnect menu, and the OTA update via Web browser will be automatically embedded to the Sketch.
Specifies to import the built-in OTA update class into the Sketch. When this option is enabled, an **Update** item will appear in the AutoConnect menu, and the OTA update via Web browser will be automatically embedded to the Sketch.
<dl class="apidl">
<dt>**Type**</dt>
<dd>AC_OTA_t</dd>
@ -281,7 +281,7 @@ Specify whether to continue the portal function even if the captive portal timed
</dl>
!!! hint "Connection request after timed-out"
With the **retainPortal**, even if AutoConnect::begin in the setup() is timed out, you can execute the sketch and the portal function as a WiFi connection attempt by calling AutoConnect::handleClient in the loop().
With the **retainPortal**, even if AutoConnect::begin in the setup() is timed out, you can execute the Sketch and the portal function as a WiFi connection attempt by calling AutoConnect::handleClient in the loop().
!!! info "All unresolved addresses redirects to /_ac"
If you enable the **retainPortal** option, **all unresolved URIs will be redirected to `SoftAPIP/_ac`**. It happens frequently as client devices repeat captive portal probes in particular. To avoid this, you need to exit from the WiFi connection Apps on your device once.
@ -362,7 +362,7 @@ Config.autoSave = AC_SAVECREDENTIAL_NEVER; // No save credential
Config.boundaryOffset = 64; // Reserve 64 bytes for the user data in EEPROM.
Config.portalTimeout = 60000; // Sets timeout value for the captive portal
Config.retainPortal = true; // Retains the portal function after timed-out
Config.homeUri = "/index.html"; // Sets home path of the sketch application
Config.homeUri = "/index.html"; // Sets home path of Sketch application
Config.title ="My menu"; // Customize the menu title
Config.staip = IPAddress(192,168,10,10); // Sets static IP
Config.staGateway = IPAddress(192,168,10,1); // Sets WiFi router address

@ -10,11 +10,11 @@
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="104.57415mm"
height="371.83472mm"
viewBox="0 0 104.57414 371.83472"
height="387.70978mm"
viewBox="0 0 104.57414 387.70978"
version="1.1"
id="svg8776"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="process_begin.svg">
<defs
id="defs8770">
@ -247,9 +247,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.4142136"
inkscape:cx="305.90966"
inkscape:cy="637.13379"
inkscape:zoom="0.7071068"
inkscape:cx="-27.323778"
inkscape:cy="441.74167"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -265,9 +265,9 @@
inkscape:snap-bbox-edge-midpoints="true"
inkscape:snap-bbox-midpoints="true"
inkscape:window-width="1920"
inkscape:window-height="1013"
inkscape:window-x="2551"
inkscape:window-y="-9"
inkscape:window-height="1029"
inkscape:window-x="1272"
inkscape:window-y="-8"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
@ -277,8 +277,8 @@
<inkscape:grid
type="xygrid"
id="grid9104"
originx="-23.664533"
originy="15.544253" />
originx="-23.664531"
originy="31.419329" />
</sodipodi:namedview>
<metadata
id="metadata8773">
@ -317,8 +317,8 @@
transform="translate(-15.875002,-48.749459)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="159.70068"
x="238.01735"
height="18.355465"
@ -342,8 +342,8 @@
transform="translate(-42.333331,28.77345)">
<rect
transform="matrix(0.945946,0.32432418,-0.945946,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="50.674988"
x="156.96188"
height="18.355465"
@ -444,8 +444,8 @@
transform="translate(-15.875002,18.719279)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="159.70068"
x="238.01735"
height="18.355465"
@ -466,7 +466,7 @@
</g>
<g
id="g9622"
transform="translate(-68.285876,50.564436)">
transform="translate(-68.285876,66.439446)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -514,7 +514,7 @@
</g>
<g
id="g9714"
transform="translate(-78.07551,36.012307)">
transform="translate(-78.07551,51.887317)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -542,23 +542,23 @@
width="34.395828"
height="7.9375019"
x="88.635422"
y="167.68488"
y="183.55966"
rx="0.26458332"
ry="0.26458257" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="90.597054"
y="172.83572"
y="188.71051"
id="text9138-7-3-9-0-6"><tspan
sodipodi:role="line"
id="tspan9136-4-0-9-8-9"
x="90.597054"
y="172.83572"
y="188.71051"
style="stroke-width:0.26458332">START Web Server</tspan></text>
<g
id="g9778"
transform="translate(-43.656245,30.757831)">
transform="translate(-43.656245,46.632841)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -582,7 +582,7 @@
</g>
<g
id="g9746-3"
transform="translate(-67.492182,16.16855)">
transform="translate(-67.492182,32.04356)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -606,11 +606,11 @@
</g>
<g
id="g9834"
transform="translate(-79.374976,29.567202)">
transform="translate(-79.374976,45.442212)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="219.95329"
x="365.3985"
height="18.355465"
@ -631,7 +631,7 @@
</g>
<g
id="g1006"
transform="translate(0,31.948452)">
transform="translate(0,47.823462)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -670,11 +670,11 @@
</g>
<g
id="g9353-2-8"
transform="translate(-15.875002,120.84858)">
transform="translate(-15.875002,136.72368)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="159.70068"
x="238.01735"
height="18.355465"
@ -695,11 +695,11 @@
</g>
<g
id="g11043"
transform="translate(0,31.948452)">
transform="translate(0,47.823462)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="335.73843"
x="397.27298"
height="18.355465"
@ -720,7 +720,7 @@
</g>
<g
id="g9980"
transform="translate(-9.2604205,23.084915)">
transform="translate(-9.2604205,38.959925)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -744,7 +744,7 @@
</g>
<g
id="g10054"
transform="translate(-1.3229224,97.697415)">
transform="translate(-1.3229224,113.5725)">
<rect
ry="0.26458257"
rx="0.26458332"
@ -802,13 +802,13 @@
</g>
<path
style="fill:none;stroke:#000000;stroke-width:0.26458335px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 105.83318,175.75505 V 297.53597 H 92.575102"
d="M 105.83318,191.63015 V 313.41107 H 92.575102"
id="path9639-1-3-9"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458329px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 75.513505,86.193127 30.107915,-0.06083 0.0306,81.420513"
d="m 75.513505,86.21746 30.107915,-0.07268 0.0306,97.2838"
id="path10088"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
@ -844,12 +844,12 @@
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.184947,175.58545 v 3.96875"
d="m 58.184947,191.46055 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.184947,187.4917 v 3.96875"
d="m 58.184947,203.3668 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9"
inkscape:connector-curvature="0" />
<path
@ -871,69 +871,69 @@
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,199.4351 v 3.96875"
d="m 58.208333,215.3102 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,211.47363 v 3.96875"
d="m 58.208333,227.34873 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,231.31741 v 3.96875"
d="m 58.208333,247.19251 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-3"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,245.86949 v 3.96875"
d="m 58.208333,261.74459 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-3-9"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#Arrow2Mstart)"
d="m 57.676398,215.1778 -33.837442,0.13255 0.0074,40.48128 H 40.75779"
d="m 57.676398,231.0529 -33.837442,0.13255 0.0074,40.48128 H 40.75779"
id="path10088-92-6"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,215.44238 v 3.96875"
d="m 58.208333,231.31748 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-9"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,261.74446 v 3.96875"
d="m 58.208333,277.61956 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-9-8"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,265.71321 v 3.96875"
d="m 58.208333,281.58831 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-5"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#marker10931)"
d="m 58.570889,265.97716 33.866674,-0.13255 -0.0073,-40.48128 H 75.504222"
d="m 58.570889,281.85226 33.866674,-0.13255 -0.0073,-40.48128 H 75.504222"
id="path10088-92-6-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,293.75905 v 3.96875"
d="m 58.208333,309.63415 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-9-8-5"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,281.58821 v 3.96875"
d="m 58.208333,297.46331 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-5-8"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,297.7278 v 3.96875"
d="m 58.208333,313.6029 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-9-5-1-9-8-5-4"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-start:url(#marker10937)"
d="m 58.708562,297.61156 33.734352,-0.0718 -0.007,-21.90474 H 75.509571"
d="m 58.708562,313.48666 33.734352,-0.0718 -0.007,-21.90474 H 75.509571"
id="path10088-92-6-8-3"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
@ -1029,75 +1029,75 @@
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="60.544109"
y="233.40862"
y="249.2834"
id="text10760-5-5-6-4"><tspan
sodipodi:role="line"
id="tspan10758-9-6-0-0"
x="60.544109"
y="233.40862"
y="249.2834"
style="stroke-width:0.26458332">NO</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="76.719864"
y="224.26886"
y="240.14365"
id="text10760-1-3-5"><tspan
sodipodi:role="line"
id="tspan10758-2-13-1"
x="76.719864"
y="224.26886"
y="240.14365"
style="stroke-width:0.26458332">YES</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="60.844864"
y="263.82974"
y="279.70499"
id="text10760-1-3-7"><tspan
sodipodi:role="line"
id="tspan10758-2-13-5"
x="60.844864"
y="263.82974"
y="279.70499"
style="stroke-width:0.26458332">YES</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="35.860859"
y="254.69594"
y="270.57114"
id="text10760-5-5-6-4-8"><tspan
sodipodi:role="line"
id="tspan10758-9-6-0-0-2"
x="35.860859"
y="254.69594"
y="270.57114"
style="stroke-width:0.26458332">NO</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="76.719864"
y="274.41339"
y="290.28864"
id="text10760-1-3-7-8"><tspan
sodipodi:role="line"
id="tspan10758-2-13-5-2"
x="76.719864"
y="274.41339"
y="290.28864"
style="stroke-width:0.26458332">YES</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="60.544109"
y="283.68027"
y="299.55551"
id="text10760-5-5-6-4-8-0"><tspan
sodipodi:role="line"
id="tspan10758-9-6-0-0-2-9"
x="60.544109"
y="283.68027"
y="299.55551"
style="stroke-width:0.26458332">NO</tspan></text>
<g
id="g2540"
transform="translate(0.132299)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="25.565748"
x="86.960411"
height="18.355465"
@ -1126,8 +1126,8 @@
transform="translate(-25.135403,-186.53117)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="189.47736"
x="277.58359"
height="18.355465"
@ -1303,8 +1303,8 @@
transform="translate(-30.682548,2.7829924)">
<rect
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)"
ry="3.6888673e-06"
rx="3.6888673e-06"
ry="3.6888673e-006"
rx="3.6888673e-006"
y="-62.503849"
x="31.466501"
height="18.355465"
@ -1426,5 +1426,58 @@
id="tspan1291"
x="79.354843"
y="2.408726">restore it.</tspan></text>
<rect
style="opacity:0.66000001;vector-effect:none;fill:#e7f3ff;fill-opacity:1;stroke:#000000;stroke-width:0.33777273;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
id="rect9184-6-3-8-8-7"
width="18.355474"
height="18.355465"
x="289.07794"
y="227.54343"
rx="3.6888673e-006"
ry="3.6888673e-006"
transform="matrix(0.94594599,0.32432418,-0.94594599,0.32432418,0,0)" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1em;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#d40055;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="51.340534"
y="174.66013"
id="text9188-0-2-80"><tspan
sodipodi:role="line"
id="tspan1081"
x="51.340534"
y="174.66013">autoRise</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="61.347313"
y="181.91884"
id="text10760-1-3-8"><tspan
sodipodi:role="line"
id="tspan10758-2-13-3"
x="61.347313"
y="181.91884"
style="stroke-width:0.26458332">YES</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 58.208333,179.56859 v 3.96875"
id="path9639-1-3-1-7-9-4-4-8-3-6"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26499999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 75.510799,173.50592 H 105.66144"
id="path10088-92-2-8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.17499995px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="77.25248"
y="172.6756"
id="text10760-5-5-6-9"><tspan
sodipodi:role="line"
id="tspan10758-9-6-0-1"
x="77.25248"
y="172.6756"
style="stroke-width:0.26458332">NO</tspan></text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 77 KiB

@ -2,8 +2,9 @@
The following parameters of [AutoConnectConfig](apiconfig.md) affect the behavior and control a logic sequence of [AutoConnect::begin](api.md#begin) function. These parameters are evaluated on a case-by-case basis and may not be valid in all situations. The Sketch must consider the role of these parameters and the conditions under which they will work as intended. You need to understand what happens when using these parameters in combination.
- [immediateStart](apiconfig.md#immediatestart) : The captive portal start immediately, without the 1st-WiFi.begin.
- [autoReconenct](apiconfig.md#autoreconnect) : Attempt re-connect with past SSID by saved credential.
- [autoReconnect](apiconfig.md#autoreconnect) : Attempts re-connect with past SSID by saved credential.
- [autoRise](apiconfig.md#autorise) : Controls starting the captive portal.
- [immediateStart](apiconfig.md#immediatestart) : Starts the captive portal immediately, without the 1st-WiFi.begin.
- [portalTimeout](apiconfig.md#portaltimeout) : Time out limit for the portal.
- [retainPortal](apiconfig.md#retainportal) : Keep DNS server functioning for the captive portal.

Loading…
Cancel
Save