   tft.println();
   tft.println(WiFi.localIP());
 
-  if (mdns.begin(cfg.hostname, WiFi.localIP()))
+  if (mdns.begin(cfg.hostname, WiFi.localIP())) {
     out.println("MDNS started");
+    mdns.addService("http", "tcp", 80);
+  }
   
   ArduinoOTA.setHostname(cfg.hostname);
   ArduinoOTA.onStart([]() {

  server.on("/config", HTTP_POST, []() {
    if (server.hasArg("plain")) {
      String body = server.arg("plain");
      Serial.print(body);
      File f = SPIFFS.open("/config.json", "w");
      f.print(body);
      f.close();


  ArduinoOTA.handle();
  server.handleClient();
  mdns.update();

  uint32_t now = millis();
  bool swtch = !digitalRead(SWITCH);
