Browse Source

Send current wifiScan configuration to web UI

i18n
Xose Pérez 7 years ago
parent
commit
408f110afa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/wifi.ino

+ 1
- 0
code/espurna/wifi.ino View File

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


Loading…
Cancel
Save