Replies: 3 comments 3 replies
-
the first problem with ESP32 core even with the standard Ethernet library is that the core has broken compatibility of Arduino API Server class. They changed it and don't want to change it back so any library which uses Server is incompatible. You can make it compatible by adding |
Beta Was this translation helpful? Give feedback.
3 replies
-
did you include Ethernet.h before ArduinoOTA.h? |
Beta Was this translation helpful? Give feedback.
0 replies
-
No….. now I’ve inverted the including order and compiled successfully!!!
I’m going to start a server with a bin file and test ……. I hope to do not have further problems…J
Many and many thanks for your work and precious suggestions.
Have good day!
Pietro
Da: Juraj Andrássy ***@***.***
Inviato: venerdì 16 luglio 2021 16:57
A: jandrassy/ArduinoOTA
Cc: OI-Pietro; Author
Oggetto: Re: [jandrassy/ArduinoOTA] ArduinoOTA - ESP32 via Ethernet port (#83)
did you include Ethernet.h before ArduinoOTA.h?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#83 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQCXQP6XPCPK5R7HTFJ6R3LTYBCDBANCNFSM43ILAYEQ> .Immagine rimossa dal mittente.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Jandrassy, Great Work!
I've few ours on my shoulders in Arduino programming so this lack of experience doesn't help me. My goal is try the OTA of ESP32 module by downloading a bin located on a server web by using ethernet port. With bundled ArduinoOTA library I've already updated by Wifi the ESP32 but now i try by Ethernet with the help of your ArduinoOTA library and ArduinoHttpClient. The Ethernet module used is WIZ610 (chip W6100) similar to W5500, this requires the Ethernet Library 2.0 modified by WIZnet.
Compiling your ino OTASketchDownload.ino with Arduino IDE, occurs the following errors:
In file included from C:\Users\ing2\AppData\Local\Temp\arduino_modified_sketch_301356\sketch_apr20b.ino:17:0:
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:123:22: error: 'WiFiServer' was not declared in this scope
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:123:34: error: 'WiFiClient' was not declared in this scope
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:123:53: error: template argument 1 is invalid
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
<<<
Once seen the error with wifi istances, i tried to ad a " #define ethernet_h and #define ESP32. Now the error is:
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:23: error: 'EthernetServer' was not declared in this scope
ArduinoOTAMdnsClass <EthernetServer, EthernetClient, EthernetUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:39: error: 'EthernetClient' was not declared in this scope
ArduinoOTAMdnsClass <EthernetServer, EthernetClient, EthernetUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:55: error: 'EthernetUDP' was not declared in this scope
ArduinoOTAMdnsClass <EthernetServer, EthernetClient, EthernetUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:66: error: template argument 1 is invalid
ArduinoOTAMdnsClass <EthernetServer, EthernetClient, EthernetUDP> ArduinoOTA;
^
...esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:66: error: template argument 2 is invalid
---esp32\1.0.5\libraries\ArduinoOTA\src/ArduinoOTA.h:112:66: error: template argument 3 is invalid
<<<
Tnks
Beta Was this translation helpful? Give feedback.
All reactions