Skip to content

Esp32 - W5500 TCP Server #8605

Closed
Closed
@Impavido85

Description

@Impavido85

Board

Esp32 Dev module

Device Description

DevKit

Hardware Configuration

GPIO

Version

v2.0.11

IDE Name

Arduino IDE

Operating System

windows 10

Flash frequency

80

PSRAM enabled

no

Upload speed

921000

Description

I'm using a w5500 with the esp32 and I need to get both wifi and ethernet working, as a client and as a TCP server. I have not found any examples. If I try to use the Arduino's "Ethernet.h" library, it works as a TCP client but not as a TCP server. When compiling I get the error "virtual void Server::begin(uint16_t)" How can I do? thank you all

Sketch

#include <WiFi.h>
EthernetServer serverTcpEth(portServerTCP);

Debug Message

error: cannot declare variable 'serverTcpEth' to be of abstract type 'EthernetServer'
note:   because the following virtual functions are pure within 'EthernetServer':
 class EthernetServer : public Server {
       ^~~~~~~~~~~~~~
note: 	'virtual void Server::begin(uint16_t)'
     virtual void begin(uint16_t port=0) =0;
                  ^~~~~

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions