From 8b25f2f2a60a29ab24367eda0f5da25d75081770 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 30 May 2019 09:28:27 +0200 Subject: [PATCH] Added timeout to WiFi manager. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c48a855..d0a4c08 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,9 +40,9 @@ void saveConfigCallback () { void setupWifiConnection() { WiFiManager wifiManager; - //set config save notify callback wifiManager.setSaveConfigCallback(saveConfigCallback); - + wifiManager.setConfigPortalTimeout(300); + //set static ip IPAddress _ip,_gw,_sn; _ip.fromString(static_ip);