arhi / EthernetSPI2

Allow ESP32-CAM module to talk to W5500 Ethernet module trough HSPI as SPI (VSPI) pins are used to connect the camera module
57 stars 15 forks source link

[SOLVED] ISSUE: Compilation error: cannot declare variable ´server´ to be of abstract type´EthernetServer´ #8

Open techscapades opened 1 year ago

techscapades commented 1 year ago

problem is solved here: https://github.com/adafruit/Ethernet2/issues/32

nnn112358 commented https://github.com/adafruit/Ethernet2/issues/32#issuecomment-422586122 There is no problem with this.

If new arduino esp32 or make error, need go to c:\Program Files (x86)\Arduino\hardware\espressif\arduino-esp32\cores\esp32\Server.h Change virtual void begin(uint16_t port = 0) = 0; to virtual void begin() = 0;

https://github.com/m5stack/M5Stack/blob/master/examples/Modules/W5500/WebServer/WebServer.ino

For me the location of this file was in: C:\Users{your_user}\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\Server.h

reopened arduino after opening the file and all was good, hope this helps mate :)

sayman486 commented 8 months ago

Thank so much. You save my life.

(My esp32 version is 2.0.11, it's worked)