Moved first loop into init to be in sync with doku
This commit is contained in:
parent
248cddd008
commit
41c9a4087a
@ -160,7 +160,11 @@ boolean IotWebConf::init()
|
||||
MDNS.begin(this->_thingName);
|
||||
MDNS.addService("http", "tcp", 80);
|
||||
#endif
|
||||
|
||||
#ifdef USE_ESPASYNCWEBSERVER
|
||||
// This is required to init wifi already within setup
|
||||
// (Otherwise AsyncWebserver will crash on begin)
|
||||
doLoop();
|
||||
#endif
|
||||
return validConfig;
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,6 @@ void setup()
|
||||
mqttUserNameValue[0] = '\0';
|
||||
mqttUserPasswordValue[0] = '\0';
|
||||
}
|
||||
iotWebConf.doLoop();
|
||||
|
||||
// Init WebServer
|
||||
rootHandler = new AsyncCallbackWebHandler();
|
||||
|
Loading…
Reference in New Issue
Block a user