mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Improve wifi fallback
This commit is contained in:
parent
ea5614c700
commit
60af2bf399
14 changed files with 133 additions and 69 deletions
|
|
@ -15,6 +15,7 @@ void restore_options_t::fromJSON(JsonObject &obj) {
|
|||
if(obj.containsKey("network")) this->network = obj["network"];
|
||||
if(obj.containsKey("transceiver")) this->transceiver = obj["transceiver"];
|
||||
if(obj.containsKey("repeaters")) this->repeaters = obj["repeaters"];
|
||||
if(obj.containsKey("mqtt")) this->mqtt = obj["mqtt"];
|
||||
}
|
||||
int8_t appver_t::compare(appver_t &ver) {
|
||||
if(this->major == ver.major && this->minor == ver.minor && this->build == ver.build) return 0;
|
||||
|
|
@ -571,7 +572,7 @@ void WifiSettings::print() {
|
|||
Serial.println("]");
|
||||
}
|
||||
void WifiSettings::printNetworks() {
|
||||
int n = WiFi.scanNetworks(false, true);
|
||||
int n = WiFi.scanNetworks(false, false);
|
||||
Serial.print("Scanned ");
|
||||
Serial.print(n);
|
||||
Serial.println(" Networks...");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue