mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-19 17:48:30 +00:00
Show AP IP if no connection handler
This commit is contained in:
parent
194905237b
commit
91958f5464
@ -259,7 +259,13 @@ void AmsWebServer::sysinfoJson() {
|
||||
IPAddress dns1;
|
||||
IPAddress dns2;
|
||||
|
||||
if(ch != NULL) {
|
||||
if(ch == NULL) {
|
||||
localIp = WiFi.softAPIP();
|
||||
subnet = IPAddress(255,255,255,0);
|
||||
gateway = WiFi.subnetMask();
|
||||
dns1 = WiFi.dnsIP(0);
|
||||
dns2 = WiFi.dnsIP(1);
|
||||
} else {
|
||||
localIp = ch->getIP();
|
||||
subnet = ch->getSubnetMask();
|
||||
gateway = ch->getGateway();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user