-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Arduino Ethernet library not working with arduino-esp32:3.0.0-rc2 #9630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is |
@me-no-dev "Ethernet library" is always the Arduino Ethernet library for W5500. The 16 years old and still used first Arduino networking library which established the Arduino networking API. My PR #9522 offered a compatibility of ESP32 Ethernet library with the Arduino library API |
If this is not a project that will run on non-ESP MCUs, then using our ETH library is much better offering than any other Ethernet lib. API is not all that different and is tightly integrated into ESPs network stack |
Maybe You can leave those 3 lines with friends declaration so We can use old Ethernet library in case we need support for many MCUs? |
@kkrygiel will add those, but I still recommend you to look into our ethernet implementation for best experience. |
@me-no-dev that was my plan but it required just a little more code than I would put into a header. but the cpp in https://github.com/espressif/arduino-esp32/pull/9522/files is simple |
and the main reason for the cpp is the instance |
Board
ESP32
Device Description
esp32 devkit v1
Hardware Configuration
Custom pcb with ESP32 and ethernet module (wiznet w5500 spi to Ethernet chip).
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE
Operating System
Ubuntu
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
921600
Description
I have custom pcb with esp32 and ethernet module connected with SPI interface. I use Arduino IDE and Arduino Ethernet library. It is working with esp32:3.0.0-alpha3 but it is not compatible with esp32:3.0.0-rc2. Etherent library uses IPAddress::raw_address function which is private. In previous versions IPAddress defined EthernetClass, DhcpClass and DNSClient as friend. In recent update onlu classes UDP, Client and Server are declared as friends. Because of that change I can't use Arduino Ethernet library. Can You change it back?
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: