Skip to content
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

EthernetServer ethServer(502) will not compile #274

Closed
jbr007 opened this issue Sep 1, 2024 · 2 comments
Closed

EthernetServer ethServer(502) will not compile #274

jbr007 opened this issue Sep 1, 2024 · 2 comments
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@jbr007
Copy link

jbr007 commented Sep 1, 2024

Hi,

I am using ESP32-S3 and have some issue trying to setup the server.

#include <Arduino.h>
#include <SPI.h>
#include <Ethernet.h>

#include <ArduinoRS485.h> // ArduinoModbus depends on the ArduinoRS485 library
#include <ArduinoModbus.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

EthernetServer ethServer(502);

will give error message:

cannot declare variable 'ethServer' to be of abstract type 'EthernetServer'"

Any solution?

It works on ethernet2.h

@JAndrassy
Copy link
Contributor

JAndrassy commented Sep 1, 2024

you use old version of the esp32 platform. espressif/arduino-esp32#10274
#241

@per1234 per1234 self-assigned this Sep 1, 2024
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Sep 1, 2024
@per1234
Copy link
Contributor

per1234 commented Sep 1, 2024

Closing as duplicate of #88, which has been resolved by espressif/arduino-esp32#9447

@jbr007 you can fix the problem by updating to version 3.0.0 or newer of the "esp32" boards platform. Instructions here:

https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants