       WiFi.softAPdisconnect(true);
       setupWifiConnect();
     }
+    server.begin();
 
   }
   else

  Serial.print("PWD: ");
  Serial.println(pwd);
  Serial.print("visit website under: ");
  Serial.println(Ip);
}

void setupWifiConnect()



#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <EEPROM.h>
#include "EPROMAnything.h"

#define DETECT_MATCH_PATTERN ((uint16_t)0xAAF0u)
#define WIFI_CONNECT_TIMEOUT_CNT ((uint16_t)50u)

// DNS server
const static uint8_t DNS_PORT = 53;
static DNSServer DnsServer;


static void readPinConfig(void);

const uint8_t ledPin = BUILTIN_LED;
const uint8_t buttonPin = 0;
const uint8_t adcOutPin = 2;
const char * ssidAP = "Cfg";
//const char * pwd = "AutomatischesZeitalter";
const char * pwd = "12341234";

static bool currentBtnStat = false;
static bool prevBtnStat = false;
