Browse Source
Merge pull request #15 from pcniatic/fix_wifi_settings
Improving readIP function
master
rjwats
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/WiFiSettingsService.cpp
|
|
@ -77,7 +77,7 @@ void WiFiSettingsService::reconfigureWiFiConnection() { |
|
|
|
} |
|
|
|
|
|
|
|
void WiFiSettingsService::readIP(JsonObject& root, String key, IPAddress& _ip){ |
|
|
|
if ( root[key].isNull() || !_ip.fromString(root[key].as<String>())){ |
|
|
|
if ( !root[key].is<String>() || !_ip.fromString(root[key].as<String>())){ |
|
|
|
_ip = INADDR_NONE; |
|
|
|
} |
|
|
|
} |
|
|
|