-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
### [Updated as I found a local solution worth a feature change]
Hardware:
Board: ESP32 WROOM DevkitC V4
Core Installation version: 1.12.4
IDE name: PlatformIO
Flash Frequency: ?
PSRAM enabled: ?
Upload Speed: n/a
Computer OS: Windows 10
Description:
I am trying to get ArduinoOTA.h working over Ethernet without success. I have a W5500 module connected to the ESP32 and successfully am using that to do several TCP and UDP communication with the ESP.
I finally got there by changing a few lines in ArduinoOTA.h and ArduinoOTA.cpp:
ArduinoOTA.h:4
#include <Ethernet.h>
(instead of #include <WiFi.h>
)
ArduinoOTA.h:84
EthernetUDP _udp_ota;
(instead of WiFiUDP _udp_ota;
)
ArduinoOTA.cpp:5
delete #include <WiFiUDP.h>
ArduinoOTA.cpp:119
// WiFi.macAddress(mac);
(comment out the line - losing the default host name feature!)
ArduinoOTA.cpp:256
EthernetClient client;
(instead of WiFiClient client;
)
I would suggest integrating a similar modification into the core ArduinoOTA to enable Ethernet OTA for everyone needing it.