Skip to content

Arduino Ethernet library not working with arduino-esp32:3.0.0-rc2  #9630

Closed
@kkrygiel

Description

@kkrygiel

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

#include <Ethernet.h>

String x = Ethernet.localIP().toString();

Debug Message

/home/ABC/Arduino/libraries/Ethernet/src/Dns.cpp: In member function 'uint16_t DNSClient::ProcessResponse(uint16_t, IPAddress&)':
/home/ABC/Arduino/libraries/Ethernet/src/Dns.cpp:340:55: error: 'uint8_t* IPAddress::raw_address()' is private within this context
  340 |                         iUdp.read(aAddress.raw_address(), 4);
      |                                   ~~~~~~~~~~~~~~~~~~~~^~
In file included from /home/ABC/.arduino15/packages/esp32/hardware/esp32/3.0.0-rc2/cores/esp32/Arduino.h:196

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions