* moved wifi related stuff to extra class

This commit is contained in:
lumapu 2022-08-14 03:00:04 +02:00
parent 74f053a5ae
commit a5f975bbe4
7 changed files with 382 additions and 340 deletions

View file

@ -158,7 +158,7 @@ void web::showSetup(void) {
// -> the PWD will only be changed if it does not match the default "{PWD}"
html.replace(F("{DEVICE}"), String(mSysCfg->deviceName));
html.replace(F("{VERSION}"), String(mVersion));
if(mMain->apActive)
if(mMain->getWifiApActive())
html.replace("{IP}", String(F("http://192.168.1.1")));
else
html.replace("{IP}", (F("http://") + String(WiFi.localIP().toString())));