Added timeout to WiFi manager.
This commit is contained in:
parent
831b514c0a
commit
8b25f2f2a6
|
@ -40,8 +40,8 @@ void saveConfigCallback () {
|
||||||
void setupWifiConnection() {
|
void setupWifiConnection() {
|
||||||
WiFiManager wifiManager;
|
WiFiManager wifiManager;
|
||||||
|
|
||||||
//set config save notify callback
|
|
||||||
wifiManager.setSaveConfigCallback(saveConfigCallback);
|
wifiManager.setSaveConfigCallback(saveConfigCallback);
|
||||||
|
wifiManager.setConfigPortalTimeout(300);
|
||||||
|
|
||||||
//set static ip
|
//set static ip
|
||||||
IPAddress _ip,_gw,_sn;
|
IPAddress _ip,_gw,_sn;
|
||||||
|
|
Loading…
Reference in New Issue