     });
 
     server.on("/special", []() {
-
        dhcp = server.arg("dhcp");
        staticIP_param = server.arg("staticip");
        netmask_param = server.arg("netmask");

      scanResp += "]}}";
      //ETS_SPI_INTR_ENABLE();
      server.send(200, "text/plain", scanResp);

    });

    server.on("/connect", []() {

      newSSID_param = server.arg("essid");
      newPASSWORD_param = server.arg("passwd");
      server.send(200, "text/plain", "1");
      WiFi.begin(newSSID_param.c_str(),newPASSWORD_param.c_str());
      //WiFi.softAPConfig(default_IP, default_IP, IPAddress(255, 255, 255, 0));   //set default ip for AP mode
      //WiFi.hostname(WiFi.hostname());
      Config.setParam("ssid", newSSID_param);
      Config.setParam("password", newPASSWORD_param);

    });

    server.on("/connstatus", []() {

        String ipadd = (WiFi.getMode() == 1 || WiFi.getMode() == 3) ? toStringIp(WiFi.localIP()) : toStringIp(WiFi.softAPIP());
        server.send(200, "text/plain", String("{\"url\":\"got IP address\", \"ip\":\""+ipadd+"\", \"modechange\":\"no\", \"ssid\":\""+WiFi.SSID()+"\", \"reason\":\"-\", \"status\":\""+ toStringWifiStatus(WiFi.status()) +"\"}"));

    });


    server.on("/setmode", []() {

      int newMode = server.arg("mode").toInt();

      switch (newMode){

           delay ( 5000 );
         }
       }
     });

     server.on("/boardInfo", []() {
        StaticJsonBuffer<200> jsonBuffer;
        JsonObject& boardInfo = jsonBuffer.createObject();
        String output = "";
