Skip to content

EthernetServer Error  #88

Closed
Closed
@esfx14

Description

@esfx14

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;

                  ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    conclusion: off topicOff topic for this repositorytopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions