Skip to content

ArduinoOTA is failing with W5500 Ethernet moduleΒ #4122

@Miq1

Description

@Miq1

### [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions