Hallo,
wollte deinen Code mal testen, bekomme aber einen Fehler 
kenn mich mit dem Arduino noch nicht wirklich aus aber ev. sagt dir diese Fehlermeldung was
Arduino: 1.8.9 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled, ck, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:67:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/global.h:9:1: error: 'Ticker' does not name a type
Ticker tkSecond; // Second - Timer for Updating Datetime Structure
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:68:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h: In function 'void ConfigureWifi()':
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h:19:3: error: 'WiFi' was not declared in this scope
WiFi.begin (config.ssid.c_str(), config.password.c_str());
^
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h:21:27: error: 'WL_CONNECTED' was not declared in this scope
while (WiFi.status() != WL_CONNECTED) {
^
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h:27:82: error: 'IPAddress' was not declared in this scope
WiFi.config(IPAddress(config.IP[0], config.IP[1], config.IP[2], config.IP[3] ), IPAddress(config.Gateway[0], config.Gateway[1], config.Gateway[2], config.Gateway[3] ) , IPAddress(config.Netmask[0], config.Netmask[1], config.Netmask[2], config.Netmask[3] ));
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:68:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h: In function 'String GetMacAddress()':
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h:35:3: error: 'WiFi' was not declared in this scope
WiFi.macAddress(mac);
^
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h: In function 'String GetAPMacAddress()':
C:\Daten\Arduino\libraries\ESPBASE/wifiTools.h:43:3: error: 'WiFi' was not declared in this scope
WiFi.softAPmacAddress(mac);
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:69:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/NTP.h: At global scope:
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:14:1: error: 'WiFiUDP' does not name a type
WiFiUDP UDPNTPClient; // NTP Client
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h: In function 'void getNTPtime()':
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:34:7: error: 'WiFi' was not declared in this scope
if (WiFi.status() == WL_CONNECTED)
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:34:24: error: 'WL_CONNECTED' was not declared in this scope
if (WiFi.status() == WL_CONNECTED)
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:36:5: error: 'UDPNTPClient' was not declared in this scope
UDPNTPClient.begin(2390); // Port for NTP receive
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:37:5: error: 'IPAddress' was not declared in this scope
IPAddress timeServerIP;
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:37:15: error: expected ';' before 'timeServerIP'
IPAddress timeServerIP;
^
C:\Daten\Arduino\libraries\ESPBASE/NTP.h:38:51: error: 'timeServerIP' was not declared in this scope
WiFi.hostByName(config.ntpServerName.c_str(), timeServerIP);
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:76:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h: In function 'void send_NTP_configuration_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h:76:7: error: 'server' was not declared in this scope
if (server.args() > 0 ) // Save Settings
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h:86:17: error: 'WriteConfig' was not declared in this scope
WriteConfig();
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h:90:3: error: 'server' was not declared in this scope
server.send_P ( 200, "text/html", PAGE_NTPConfiguration );
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h: In function 'void send_NTP_configuration_values_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_NTPSettings.h:105:3: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:77:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_Information.h: In function 'void send_information_values_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_Information.h:59:33: error: 'WiFi' was not declared in this scope
values += "x_ssid|" + (String)WiFi.SSID() + "|div
";
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:77:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_Information.h:64:3: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:78:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h: In function 'void send_devicename_value_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h:52:2: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h: In function 'void send_general_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h:60:6: error: 'server' was not declared in this scope
if (server.args() > 0 ) // Save Settings
^
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h:67:15: error: 'WriteConfig' was not declared in this scope
WriteConfig();
^
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h:70:2: error: 'server' was not declared in this scope
server.send_P ( 200, "text/html", PAGE_AdminGeneralSettings );
^
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h: In function 'void send_general_configuration_values_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_General.h:82:2: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:79:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h: In function 'void send_network_configuration_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:91:6: error: 'server' was not declared in this scope
if (server.args() > 0 ) // Save Settings
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:113:15: error: 'WriteConfig' was not declared in this scope
WriteConfig();
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h: In function 'void send_network_configuration_values_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:153:2: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h: In function 'void send_connection_state_values_html()':
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:168:6: error: 'WiFi' was not declared in this scope
if (WiFi.status() == 0) state = "Idle";
^
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:178:11: error: 'WiFi' was not declared in this scope
int n = WiFi.scanNetworks();
^
In file included from C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:79:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:
C:\Daten\Arduino\libraries\ESPBASE/Page_NetworkConfiguration.h:219:2: error: 'server' was not declared in this scope
server.send ( 200, "text/plain", values);
^
In file included from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:5:0:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In member function 'void ESPBASE::initialize()':
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:101:26: error: 'ReadConfig' was not declared in this scope
CFG_saved = ReadConfig();
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:110:7: error: 'WiFi' was not declared in this scope
WiFi.mode(WIFI_OFF);
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:110:17: error: 'WIFI_OFF' was not declared in this scope
WiFi.mode(WIFI_OFF);
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:111:17: error: 'WIFI_STA' was not declared in this scope
WiFi.mode(WIFI_STA);
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:115:30: error: 'WL_CONNECTED' was not declared in this scope
while((WiFi.status()!= WL_CONNECTED) and --timeoutClick > 0) {
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:120:26: error: 'WL_CONNECTED' was not declared in this scope
if(WiFi.status()!= WL_CONNECTED )
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:141:5: error: 'WiFi' was not declared in this scope
WiFi.mode(WIFI_AP);
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:141:15: error: 'WIFI_AP' was not declared in this scope
WiFi.mode(WIFI_AP);
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In member function 'void ESPBASE::httpSetup()':
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:168:3: error: 'server' was not declared in this scope
server.on ( "/", []() {
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:170:5: error: 'server' is not captured
server.send_P ( 200, "text/html", PAGE_AdminMainPage); // const char top of page
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:174:5: error: 'server' is not captured
server.send( 200, "text/html", "" );
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:181:5: error: 'server' is not captured
server.send_P ( 200, "text/html", PAGE_Information );
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:190:5: error: 'server' is not captured
server.send_P ( 200, "text/plain", PAGE_Style_css );
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:194:5: error: 'server' is not captured
server.send_P ( 200, "text/plain", PAGE_microajax_js );
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:205:5: error: 'server' is not captured
server.send ( 400, "text/html", "Page not Found" );
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In member function 'void ESPBASE::OTASetup()':
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:216:7: error: 'ArduinoOTA' was not declared in this scope
ArduinoOTA.onStart([]() { // what to do before OTA download insert code here
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:232:29: error: 'ota_error_t' has not been declared
ArduinoOTA.onError([](ota_error_t error) {
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h: In lambda function:
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:234:24: error: 'OTA_AUTH_ERROR' was not declared in this scope
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:235:29: error: 'OTA_BEGIN_ERROR' was not declared in this scope
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:236:29: error: 'OTA_CONNECT_ERROR' was not declared in this scope
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:237:29: error: 'OTA_RECEIVE_ERROR' was not declared in this scope
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
^
C:\Daten\Arduino\libraries\ESPBASE/ESPBASE.h:238:29: error: 'OTA_END_ERROR' was not declared in this scope
else if (error == OTA_END_ERROR) Serial.println("End Failed");
^
C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino: At global scope:
GatewayEno2Wifi_OTA_wifimgr:30:1: error: 'WiFiServer' does not name a type
WiFiServer server1(TCP_SER2NET_PORT);
^
GatewayEno2Wifi_OTA_wifimgr:31:12: error: cannot declare variable 'client' to be of abstract type 'WiFiClient'
WiFiClient client;
^
In file included from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:6:0:
C:\Daten\Arduino\libraries\WiFi\src/WiFiClient.h:27:7: note: because the following virtual functions are pure within 'WiFiClient':
class WiFiClient : public Client {
^
In file included from C:\Daten\Arduino\libraries\WiFi\src/WiFiClient.h:24:0,
from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:6:
C:\Daten\Arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:29:21: note: virtual int Client::connect(const IPAddress&, uint16_t)
virtual int connect(CONST IPAddress& ip, uint16_t port) =0;
^
C:\Daten\Arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:37:22: note: virtual bool Client::flush(unsigned int)
virtual bool flush(unsigned int maxWaitMs = 0) = 0;
^
C:\Daten\Arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:38:22: note: virtual bool Client::stop(unsigned int)
virtual bool stop(unsigned int maxWaitMs = 0) = 0;
^
GatewayEno2Wifi_OTA_wifimgr:34:1: error: 'WiFiServer' does not name a type
WiFiServer serverDiag(TCP_DIAG_PORT);
^
GatewayEno2Wifi_OTA_wifimgr:35:12: error: cannot declare variable 'clientDiag' to be of abstract type 'WiFiClient'
WiFiClient clientDiag;
^
In file included from C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino:6:0:
C:\Daten\Arduino\libraries\WiFi\src/WiFiClient.h:27:7: note: since type 'WiFiClient' has pure virtual functions
class WiFiClient : public Client {
^
C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino: In function 'void setup()':
GatewayEno2Wifi_OTA_wifimgr:102:2: error: 'server1' was not declared in this scope
server1.begin();
^
GatewayEno2Wifi_OTA_wifimgr:103:2: error: 'serverDiag' was not declared in this scope
serverDiag.begin();
^
C:\Daten\Arduino\portable\sketchbook\GatewayEno2Wifi_OTA_wifimgr\GatewayEno2Wifi_OTA_wifimgr.ino: In function 'void loop()':
GatewayEno2Wifi_OTA_wifimgr:113:3: error: 'ArduinoOTA' was not declared in this scope
ArduinoOTA.handle();
^
GatewayEno2Wifi_OTA_wifimgr:116:3: error: 'server' was not declared in this scope
server.handleClient();
^
GatewayEno2Wifi_OTA_wifimgr:140:14: error: 'server1' was not declared in this scope
client = server1.available();
^
GatewayEno2Wifi_OTA_wifimgr:163:18: error: 'serverDiag' was not declared in this scope
clientDiag = serverDiag.available();
^
Multiple libraries were found for "WiFiClient.h"
Used: C:\Daten\Arduino\libraries\WiFi
Not used: C:\Daten\Arduino\portable\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WiFi
exit status 1
'WiFiServer' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.