       }
 
       scanResp += "{\"result\": { \"APs\" : [ ";
-      //Serial.println("scan2");
       //ETS_SPI_INTR_DISABLE();
       for (int netIndex = 0; netIndex < tot; netIndex++) {
         scanResp += "{\"enc\" : \"";

      break;
    case 3:
      mode = "AP+STA";
      // statements
      break;
    case 4:
      mode = "----";
      break;
    default:
      // statements
      break;
  }
  return mode;

    });

    //"system/info" information
    server.on("/system/info", []() {
            //ETS_SPI_INTR_DISABLE();
            server.send(200, "text/plain", String("{\"heap\":\""+ String(ESP.getFreeHeap()/1024)+" KB\",\"id\":\"" + String(ESP.getFlashChipId()) + "\",\"size\":\"" + (ESP.getFlashChipSize() / 1024 / 1024) + " MB\",\"baud\":\"9600\"}"));
            //ETS_SPI_INTR_ENABLE();
    });
    server.on("/heap", []() {
      server.send(200, "text/plain", String(ESP.getFreeHeap()));
    });

