mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 23:46:37 +02:00
* moved wifi related stuff to extra class
This commit is contained in:
parent
74f053a5ae
commit
a5f975bbe4
7 changed files with 382 additions and 340 deletions
|
@ -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())));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue