arduinoWebSockets icon indicating copy to clipboard operation
arduinoWebSockets copied to clipboard

Support for ESP32 + W5500 ?

Open mbta009 opened this issue 4 years ago • 2 comments

Hi, Does support this library also ESP32 with W5500 ethernet module? Thank for great websocket lib!

mbta009 avatar Nov 27 '20 08:11 mbta009

I do not own a W5500, but since the API is the same (Ethernet.h) as for the W5100 you can try to set the WEBSOCKETS_NETWORK_TYPE define to NETWORK_W5100.

Links2004 avatar Nov 29 '20 18:11 Links2004

Having issue with WEBSOCKETS_NETWORK_TYPE define to NETWORK_W5100, here is the error Arduino/libraries/WebSockets/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()': /home/zzzzz/Arduino/libraries/WebSockets/src/WebSocketsClient.cpp:266:77: error: no matching function for call to 'EthernetClient::connect(const char*, uint16_t&, int)' if(_client.tcp->connect(_host.c_str(), _port, WEBSOCKETS_TCP_TIMEOUT)

zeeshanulhaq avatar Mar 09 '24 20:03 zeeshanulhaq