Skip to content

Compiler error for Ehernet example #129

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

Closed
argo9 opened this issue Apr 13, 2021 · 4 comments
Closed

Compiler error for Ehernet example #129

argo9 opened this issue Apr 13, 2021 · 4 comments

Comments

@argo9
Copy link

argo9 commented Apr 13, 2021

Compiler exits in this way:
cannot declare variable 'server' to be of abstract type 'EthernetServer'

Last library release installed, arduino IDE 1.8.12, ESP32 1.0.6 eith ethernet library and w5500 board.

Thanks :)

@argo9
Copy link
Author

argo9 commented Apr 13, 2021

Applied this solution:

To fix ESP32 compile error, just copy the following file into the ESP32 cores/esp32 directory (e.g. ./arduino-1.8.12/hardware/espressif/cores/esp32) to overwrite the old file:

Server.h

found here https://github.com/khoih-prog/Ethernet_Manager
the edited server.h here: https://github.com/khoih-prog/Ethernet_Manager/blob/main/LibraryPatches/esp32/cores/esp32/Server.h

@ArminPP
Copy link

ArminPP commented Apr 13, 2021

As in the readme of aWot described, there is a 'hack' in server.h to do, then it should work ;-)

p.s. unfortunately this doesn't work with asyncwebserver :-(

@argo9 argo9 closed this as completed Apr 13, 2021
@argo9
Copy link
Author

argo9 commented Apr 13, 2021

As in the readme of aWot described, there is a 'hack' in server.h to do, then it should work ;-)

p.s. unfortunately this doesn't work with asyncwebserver :-(

Thanks man!! We were writing the solution the same time :D

Yeah... also async web server would have been a nice implementation... :( but also aWOT seems a very nice work :D

@lasselukkari
Copy link
Owner

I'm happy you got it working. @ArminPP thanks for helping to take care if this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants