|
@ -302,6 +302,7 @@ void _wifiInitCommands() { |
|
|
|
|
|
|
|
|
void _wifiWebSocketOnSend(JsonObject& root) { |
|
|
void _wifiWebSocketOnSend(JsonObject& root) { |
|
|
root["maxNetworks"] = WIFI_MAX_NETWORKS; |
|
|
root["maxNetworks"] = WIFI_MAX_NETWORKS; |
|
|
|
|
|
root["wifiScan"] = getSetting("wifiScan", WIFI_SCAN_NETWORKS).toInt() == 1; |
|
|
JsonArray& wifi = root.createNestedArray("wifi"); |
|
|
JsonArray& wifi = root.createNestedArray("wifi"); |
|
|
for (byte i=0; i<WIFI_MAX_NETWORKS; i++) { |
|
|
for (byte i=0; i<WIFI_MAX_NETWORKS; i++) { |
|
|
if (!hasSetting("ssid", i)) break; |
|
|
if (!hasSetting("ssid", i)) break; |
|
|