Links2004 / arduinoWebSockets

arduinoWebSockets
GNU Lesser General Public License v2.1
1.86k stars 551 forks source link

Support for ESP32 + W5500 ? #582

Open mbta009 opened 3 years ago

mbta009 commented 3 years ago

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

Links2004 commented 3 years ago

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.

zeeshanulhaq commented 4 months ago

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)