const char* cAPname="fugget about it";
    const char* cAPpass="eJNC3*0oP?";
    
    #include <WiFi.h>
    #include "pinheader2.h"
    #include "webserver.h"
    
    
    
    
    void setup() {
      // put your setup code here, to run once:
      pinMode(In1,INPUT);
      pinMode(In2,INPUT);
      pinMode(In3,INPUT);
      pinMode(In4,INPUT);
      pinMode(In5,INPUT);
      pinMode(In6,INPUT);
      pinMode(In7,INPUT);
      pinMode(In8,INPUT);
      Serial.begin(115200);
      while(!Serial){};
      
      //WiFi Setup
      Serial.println("Connect to WiFi:");
      delay(20);
        WiFi.begin(cAPname, cAPpass);
        while (WiFi.status() != WL_CONNECTED) {
            delay(500);
            Serial.print(".");
            if (millis()>3500) ESP.restart(); // Wenn WiFi Start zu lange dauert
        }
        Serial.println("");
        Serial.println("WiFi connected");
        Serial.println("IP address: ");
        Serial.println(WiFi.localIP());
      
        startHttpServer();
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
      Serial.println("Press space to start");
      bool bWait=true;
      while (bWait == true){
        server.handleClient();
        //if (bHandleJsonSend == true) bWait=false;
        if (Serial.read() == ' ') bWait=false;
      };
    
      runTest();
      
      // Output:
      for (int n=1; n<=8; n++){
        Serial.printf ("%2i :",n);
        if (pinUsage[n-1].bInUse == true) Serial.print("USED ");
        else Serial.print("---- ");
        Serial.printf("%s\r\n",pinUsage[n-1].cUsedBy);
      }; // for
    
    }