     Serial.print(".");
     timeout++;
   }
+  Serial.println();
 
   if (WiFi.status() != WL_CONNECTED)
   {

    startAp = true;
    switchSetup = true;
  }

  

  if (MDNS.begin("OPENHAB_TESTLUDER")) 
  {
    Serial.println("mDNS responder started");
    MDNS.addService("http", "tcp", 80);
  }
  else

 */
void handleRoot()
{
  server.send(200, "text/html", "<!doctype html><body><head></head><html><h1>You are connected</h1><br/><a href=\"wlanSetup\">Setup WLAN</a><br/><a>Value: " + String(curPwmOut) + "</a></body></html>");
}

void handleWlanSetup()
