Ok… next Problem in Arduino IDE while Compiling:
C:\Users\FB\Desktop\nodemcuv2-pilight\main\main.ino: In function ‘void setOTA()’:
main:773:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘setPort’
ArduinoOTA.setPort(ota_port);
^
main:776:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘setHostname’
ArduinoOTA.setHostname(ota_hostname);
^
main:779:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘setPassword’
ArduinoOTA.setPassword(ota_password);
^
main:781:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘onStart’
ArduinoOTA.onStart( {
^
main:784:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘onEnd’
ArduinoOTA.onEnd( {
^
main:787:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘onProgress’
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
^
main:790:14: error: ‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘onError’
ArduinoOTA.onError([](ota_error_t error) {
^
main:790:25: error: ‘ota_error_t’ has not been declared
ArduinoOTA.onError([](ota_error_t error) {
^
C:\Users\FB\Desktop\nodemcuv2-pilight\main\main.ino: In lambda function:
main:792:18: error: ‘OTA_AUTH_ERROR’ was not declared in this scope
if (error == OTA_AUTH_ERROR)
^
main:794:23: error: ‘OTA_BEGIN_ERROR’ was not declared in this scope
else if (error == OTA_BEGIN_ERROR)
^
main:796:23: error: ‘OTA_CONNECT_ERROR’ was not declared in this scope
else if (error == OTA_CONNECT_ERROR)
^
main:798:23: error: ‘OTA_RECEIVE_ERROR’ was not declared in this scope
else if (error == OTA_RECEIVE_ERROR)
^
main:800:23: error: ‘OTA_END_ERROR’ was not declared in this scope
else if (error == OTA_END_ERROR)
^
C:\Users\FB\Desktop\nodemcuv2-pilight\main\main.ino: In function ‘void setOTA()’:
main:803:20: error: no matching function for call to ‘ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>::begin()’
ArduinoOTA.begin();
^
C:\Users\FB\Desktop\nodemcuv2-pilight\main\main.ino:803:20: note: candidate is:
In file included from C:\Users\FB\Desktop\nodemcuv2-pilight\main\main.ino:144:0:
C:\Users\FB\Documents\Arduino\libraries\ArduinoOTA\src/ArduinoOTA.h:87:8: note: void ArduinoOTAMdnsClass<NetServer, NetClient, NetUDP>::begin(IPAddress, const char*, const char*, OTAStorage&) [with NetServer = WiFiServer; NetClient = WiFiClient; NetUDP = WiFiUDP]
void begin(IPAddress localIP, const char* name, const char* password, OTAStorage& storage) {
^
C:\Users\FB\Documents\Arduino\libraries\ArduinoOTA\src/ArduinoOTA.h:87:8: note: candidate expects 4 arguments, 0 provided
exit status 1
‘class ArduinoOTAMdnsClass<WiFiServer, WiFiClient, WiFiUDP>’ has no member named ‘setPort’