Unable to compile code.
Changed the network class type to W5100 in Websockets.h still there are lots of compilation issues.
Code used: example/esp32 and modified for ethernet
error: C:\Users\Mr Cool\Documents\Arduino\libraries\Ethernet\src/Ethernet.h:221:14: note: candidate expects 2 arguments, 3 provided
C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp: In constructor 'WebSocketsServer::WebSocketsServer(uint16_t, const String&, const String&)':
C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:47:55: error: invalid new-expression of abstract class type 'EthernetServer'
_server = new WEBSOCKETS_NETWORK_SERVER_CLASS(port);
^
In file included from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSockets.h:178:0,
from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:25:
C:\Users\Mr Cool\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\Mr Cool\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:152:0,
from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSockets.h:34,
from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:25:
C:\Users\Mr Cool\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Server.h:28:18: note: virtual void Server::begin(uint16_t)
virtual void begin(uint16_t port=0) =0;
Unable to compile code. Changed the network class type to W5100 in Websockets.h still there are lots of compilation issues.
Code used: example/esp32 and modified for ethernet
error: C:\Users\Mr Cool\Documents\Arduino\libraries\Ethernet\src/Ethernet.h:221:14: note: candidate expects 2 arguments, 3 provided C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp: In constructor 'WebSocketsServer::WebSocketsServer(uint16_t, const String&, const String&)': C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:47:55: error: invalid new-expression of abstract class type 'EthernetServer' _server = new WEBSOCKETS_NETWORK_SERVER_CLASS(port); ^ In file included from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSockets.h:178:0, from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:25: C:\Users\Mr Cool\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\Mr Cool\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:152:0, from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSockets.h:34, from C:\Users\Mr Cool\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:25: C:\Users\Mr Cool\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Server.h:28:18: note: virtual void Server::begin(uint16_t) virtual void begin(uint16_t port=0) =0;