ayushsharma82 / ElegantOTA

OTA updates made slick and simple for everyone!
https://elegantota.pro
GNU Affero General Public License v3.0
644 stars 119 forks source link

WT32-ETH01 - work via Ethernet port #101

Closed Sergio-tix closed 1 year ago

Sergio-tix commented 1 year ago

Failed to get it to work via ethernet on board WT32-ETH01. Lots of conflicts between libraries.

In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:95:6: error: 'HTTP_DELETE' conflicts with a previous declaration
   XX(0,  DELETE,      DELETE)       \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:64:3: note: previous declaration 'WebRequestMethod HTTP_DELETE'
   HTTP_DELETE  = 0b00000100,
   ^~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:96:6: error: 'HTTP_GET' conflicts with a previous declaration
   XX(1,  GET,         GET)          \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:62:3: note: previous declaration 'WebRequestMethod HTTP_GET'
   HTTP_GET     = 0b00000001,
   ^~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:97:6: error: 'HTTP_HEAD' conflicts with a previous declaration
   XX(2,  HEAD,        HEAD)         \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:67:3: note: previous declaration 'WebRequestMethod HTTP_HEAD'
   HTTP_HEAD    = 0b00100000,
   ^~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:98:6: error: 'HTTP_POST' conflicts with a previous declaration
   XX(3,  POST,        POST)         \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:63:3: note: previous declaration 'WebRequestMethod HTTP_POST'
   HTTP_POST    = 0b00000010,
   ^~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:99:6: error: 'HTTP_PUT' conflicts with a previous declaration
   XX(4,  PUT,         PUT)          \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:65:3: note: previous declaration 'WebRequestMethod HTTP_PUT'
   HTTP_PUT     = 0b00001000,
   ^~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:102:6: error: 'HTTP_OPTIONS' conflicts with a previous declaration
   XX(6,  OPTIONS,     OPTIONS)      \
      ^
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:68:3: note: previous declaration 'WebRequestMethod HTTP_OPTIONS'
   HTTP_OPTIONS = 0b01000000,
   ^~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/HTTP_Method.h:4,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6\libraries\WebServer\src/WebServer.h:30,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\WebServer_WT32_ETH01-main\src/WebServer_WT32_ETH01.h:84,
                 from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:11:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:128:6: error: 'HTTP_PATCH' conflicts with a previous declaration
   XX(28, PATCH,       PATCH)        \
      ^~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:138:45: note: in definition of macro 'XX'
 #define XX(num, name, string) HTTP_##name = num,
                                             ^~~
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/nghttp/port/include/http_parser.h:139:3: note: in expansion of macro 'HTTP_METHOD_MAP'
   HTTP_METHOD_MAP(XX)
   ^~~~~~~~~~~~~~~
In file included from C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\ESP32_ElegantOTA_Demo\ESP32_ElegantOTA_Demo.ino:5:
C:\3_Arduino\arduino-1.8.19__esp32__ETH01__OTA\portable\!_sketchbook\libraries\ESPAsyncWebServer\src/ESPAsyncWebServer.h:66:3: note: previous declaration 'WebRequestMethod HTTP_PATCH'
   HTTP_PATCH   = 0b00010000,
   ^~~~~~~~~~

exit status 1
johnmx commented 1 year ago

I use ElegantOTA v2.2.6 with my WT32-ETH01 boards without any problems.

Sergio-tix commented 1 year ago

I use ElegantOTA v2.2.6 with my WT32-ETH01 boards without any problems.

What libraries do you use? Could you provide a demo sketch?

johnmx commented 1 year ago

I use ElegantOTA v2.2.6 with my WT32-ETH01 boards without any problems.

What libraries do you use? Could you provide a demo sketch?

I use the following:

Sergio-tix commented 1 year ago
  • WebServer_WT32_ETH01 @ 1.4.1

Thank you. Found. https://github.com/khoih-prog/WebServer_WT32_ETH01/blob/main/examples/MQTT_And_OTA_Ethernet/MQTT_And_OTA_Ethernet.ino

ayushsharma82 commented 1 year ago

Answered by @johnmx