khoih-prog / WebSockets2_Generic

A WebSocket Server and Client library for Arduino, based on RFC6455, for writing modern Websockets applications. Now support ESP8266, ESP32 (including ESP32-S2 Saola, AI-Thinker ESP-12K, WT32_ETH01, etc.), nRF52, SAMD21, SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, Teensy, RP2040-based, etc. boards, with WiFiNINA, Teensy 4.1 NativeEthernet/QNEthernet, Ethernet W5x00 / ENC28J60 / LAN8742A / LAN8720, ESP8266 / ESP32-AT modules/shields, as well as SINRIC / Alexa / Google Home
GNU General Public License v3.0
81 stars 30 forks source link

[Questions] How to receive binary data? #44

Closed qlalfdu closed 2 years ago

qlalfdu commented 2 years ago

Questions 1 Example is ESP32_WebSocketClient.ino How to receive binary data?

Questions 2 Sometimes the connection with the server is lost. When the connection to the server is lost

client.connect(websockets server_host, websockets server_port, "/");

doesn't connect, is there any other way?

thank you

khoih-prog commented 2 years ago

Hi @qlalfdu

I guess you're posting in the wrong library as there is no ESP32_WebSocketClient.ino in this library's example.

As you're using ESP32, it's better to post your issue in arduinoWebSockets library which has the ESP32 WebSocketClient example

Good Luck,