Closed
Description
Board: Adafruit ESP Feather with Ethernet FeatherWing
Upload Speed: 115200
Flash Frequency: 80 MHz
I need this EthernetServer thing to work for my programm, but even this small one here does not work and I am not able to find out what I did wrong.
#include <Arduino.h>
#include <Ethernet.h>
EthernetServer server(80);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
sketch_jan17c:4:16: error: cannot declare variable 'server' to be of abstract type 'EthernetServer'
EthernetServer server(80);
^
In file included from C:\Users\Documents\Arduino\sketch_jan17c\sketch_jan17c.ino:2:0:
C:\Users\Documents\Arduino\libraries\Ethernet\src/Ethernet.h:253:7: note: because the following virtual functions are pure within 'EthernetServer':
class EthernetServer : public Server {
^
In file included from C:\Users\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.1\cores\esp32/Arduino.h:158:0,
from C:\Users\Documents\Arduino\sketch_jan17c\sketch_jan17c.ino:1:
C:\Users\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.1\cores\esp32/Server.h:28:18: note: virtual void Server::begin(uint16_t)
virtual void begin(uint16_t port=0) =0;
^