Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
v2.14.1 to fix WIO_Terminal bug
Browse files Browse the repository at this point in the history
### Release v2.14.1

1. Fix setInsecure() bug for WIO_Terminal.
5. Update `Packages' Patches` for `Seeeduino` core. Be sure to use the `Packages_Patches` of this library version v2.14.1+ to avoid compiler error.
  • Loading branch information
khoih-prog authored Feb 18, 2022
1 parent e7b07c8 commit b8aec0c
Show file tree
Hide file tree
Showing 14 changed files with 57 additions and 36 deletions.
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ This file must be copied into the directory:
- `~/.arduino15/packages/adafruit/hardware/samd/x.yy.zz/cores/arduino/Print.cpp`

#### 6. For Seeeduino SAMD boards

##### Important Notes

Be sure to use the `Packages_Patches` of `WebSockets_Generic` library version v2.14.1+ to avoid compiler error.


***To be able to compile, run and automatically detect and display BOARD_NAME on Seeeduino SAMD (XIAO M0, Wio Terminal, etc) boards***, you have to copy the whole [Seeeduino SAMD Packages_Patches](Packages_Patches/Seeeduino/hardware/samd/1.8.2) directory into Seeeduino samd directory (~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2).

Expand Down Expand Up @@ -1320,7 +1325,7 @@ void loop()
```
Start Generic_WebSocketClient_EthernetENC on NRF52840_FEATHER
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board : NRF52840_FEATHER , setCsPin: 10
[WS] Default SPI pinout:
[WS] MOSI: 25
Expand Down Expand Up @@ -1603,7 +1608,7 @@ Device 123456789012345678901234 set position to 0
```
Start WebSocketClientSocketIO_W5500 on NRF52840_FEATHER with W5x00 using Ethernet2 Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board : NRF52840_FEATHER , setCsPin: 10
[WS] Default SPI pinout:
[WS] MOSI: 25
Expand Down Expand Up @@ -1686,7 +1691,7 @@ Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
```
Start Generic_WebSocketClientSocketIO_EthernetENC on NRF52840_FEATHER with ENC28J60 using EthernetENC Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board : NRF52840_FEATHER , setCsPin: 10
[WS] Default SPI pinout:
[WS] MOSI: 25
Expand Down Expand Up @@ -1770,7 +1775,7 @@ Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
```

Start WIOTerminal_WebSocketClientSSL on WIO_TERMINAL
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
WebSockets Client started @ IP address: 192.168.2.150
WebSockets Server : wss://account.duckdns.org
Connected to WebSockets Server @ wss://account.duckdns.org
Expand Down Expand Up @@ -1800,7 +1805,7 @@ User-Agent: arduino-WebSocket-Client
```
Start Generic_WebSocketClientSSL_WiFiNINA on SAMD_NANO_33_IOT
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
Used/default SPI pinout:
MOSI:11
MISO:12
Expand Down Expand Up @@ -1836,7 +1841,7 @@ User-Agent: arduino-WebSocket-Client
```
Start WebSocketClientSocketIO_NINA on SAMD_NANO_33_IOT
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
Used/default SPI pinout:
MOSI:11
MISO:12
Expand All @@ -1847,7 +1852,7 @@ SSID: HueNet1
WebSockets Client IP Address: 192.168.2.114
signal strength (RSSI):-18 dBm
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] WebSockets_Generic v2.14.0
[WS] WebSockets_Generic v2.14.1
[WS] [wsIOc] found EIO=4 disable EIO ping on client
[WS] [WS-Client] Connect ws...
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
Expand Down Expand Up @@ -1968,7 +1973,7 @@ Message from Client : { now: 30001 }
```
Start Generic_WebSocketClientSocketIO_W5500 on NRF52840_FEATHER with W5x00 using EthernetLarge Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board :NRF52840_FEATHER, setCsPin:10
[WS] Default SPI pinout:
[WS] MOSI:25
Expand All @@ -1981,7 +1986,7 @@ W5100 init, using SS_PIN_DEFAULT = 10, new ss_pin = 10, W5100Class::ss_pin = 10
W5100::init: W5500, SSIZE =8192
WebSockets Client @ IP address: 192.168.2.94
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] WebSockets_Generic v2.14.0
[WS] WebSockets_Generic v2.14.1
[WS] [wsIOc] found EIO=4 disable EIO ping on client
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
[WS] [WS-Client] [sendHeader] Sending header...
Expand Down Expand Up @@ -2102,7 +2107,7 @@ The following are debug terminal output when running example [WebSocketClientSoc
```
Start WebSocketClientSocketIO_W5500 on RASPBERRY_PI_PICO with W5x00 using Ethernet2 Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board :RASPBERRY_PI_PICO, setCsPin:17
[WS] Default SPI pinout:
[WS] MOSI:19
Expand All @@ -2112,7 +2117,7 @@ WebSockets_Generic v2.14.0
[WS] =========================
WebSockets Client @ IP address: 192.168.2.119
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] WebSockets_Generic v2.14.0
[WS] WebSockets_Generic v2.14.1
[WS] [wsIOc] found EIO=4 disable EIO ping on client
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
[WS] [WS-Client] [sendHeader] Sending header...
Expand Down Expand Up @@ -2251,7 +2256,7 @@ The following are debug terminal output when running example [WebSocketClientSoc
```
Start WebSocketClientSocketIO_W5500 on RaspberryPi Pico with W5x00 using Ethernet2 Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
[WS] Board :RaspberryPi Pico, setCsPin:17
[WS] Default SPI pinout:
[WS] MOSI:19
Expand All @@ -2261,7 +2266,7 @@ WebSockets_Generic v2.14.0
[WS] =========================
WebSockets Client @ IP address: 192.168.2.98
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] WebSockets_Generic v2.14.0
[WS] WebSockets_Generic v2.14.1
[WS] [wsIOc] found EIO=4 disable EIO ping on client
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
[WS] [WS-Client] [sendHeader] Sending header...
Expand Down Expand Up @@ -2394,7 +2399,7 @@ The following are debug terminal output when running example [WT32_ETH01_WebSock
```
Starting WT32_ETH01_WebSocketClient on ESP32_DEV with ETH_PHY_LAN8720
WebServer_WT32_ETH01 v1.4.1
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
ETH MAC: A8:03:2A:A1:61:73, IPv4: 192.168.2.232, FULL_DUPLEX, 100Mbps
WebSockets Client started @ IP address: 192.168.2.232
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
Expand Down Expand Up @@ -2478,7 +2483,7 @@ The following are debug terminal output when running example [Teensy_WebSocketCl
```
Starting Teensy_WebSocketClient_QNEthernet on TEENSY 4.1 using QNEthernet
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
=========== USE_QN_ETHERNET ===========
Initialize Ethernet using static IP => Connected! IP address:192.168.2.222
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
Expand Down Expand Up @@ -2525,7 +2530,7 @@ The following are debug terminal output when running example [Portenta_H7_WebSoc
```
Start Portenta_H7_WebSocketClientSocketIO on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
WebSockets Client @ IP address: 192.168.2.132
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
Expand Down Expand Up @@ -2586,7 +2591,7 @@ The following are debug terminal output when running example [WebSocketClientSoc
```
Start WebSocketClientSocketIO_WiFi on PORTENTA_H7_M7
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
Connecting to SSID: HueNet1
SSID: HueNet1
WebSockets Client IP Address: 192.168.2.130
Expand Down Expand Up @@ -2642,10 +2647,10 @@ The following are debug terminal output when running example [Portenta_H7_WebSoc
```
Start Portenta_H7_WebSocketClient_Sticky_SocketIO on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
WebSockets Client @ IP address: 192.168.2.133
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
[WS] WebSockets_Generic v2.14.0
[WS] WebSockets_Generic v2.14.1
[WS] [wsIOc] found EIO=4 disable EIO ping on client
[WS] [WS-Client][connectedCb] Connected to Host:192.168.2.30, Port:8080
[WS] [WS-Client] [sendHeader] Sending header...
Expand Down Expand Up @@ -2713,7 +2718,7 @@ The following are debug terminal output when running example [ESP32_WebSocketCli
```
Start ESP32_WebSocketClientSocketIO on ESP32S3_DEV
WebSockets_Generic v2.14.0
WebSockets_Generic v2.14.1
Connecting to HueNet1
WebSockets Client started @ IP address: 192.168.2.83
Connecting to WebSockets Server @ IP address: 192.168.2.30, port: 8080
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Release v2.14.1](#release-v2141)
* [Release v2.14.0](#release-v2140)
* [Release v2.13.0](#release-v2130)
* [Major Release v2.12.0](#major-release-v2120)
Expand Down Expand Up @@ -54,6 +55,11 @@

## Changelog

### Release v2.14.1

1. Fix setInsecure() bug for WIO_Terminal.
5. Update `Packages' Patches` for `Seeeduino` core. Be sure to use the `Packages_Patches` of this library version v2.14.1+ to avoid compiler error.

### Release v2.14.0

1. Suppress unnecessary warnings.
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WebSockets_Generic",
"version": "2.14.0",
"version": "2.14.1",
"description": "RFC6455-based WebSockets Server and Client for Arduino boards, such as nRF52, Portenta_H7, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266/ESP32 ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet or Portenta_H7 WiFi/Ethernet. Now supporting websocket only mode for Socket.IO",
"keywords": "wifi, WiFiNINA, websocket, websockets-server, websockets-client, Teensy, SAM DUE, SAMD, STM32, nRF52, QNEthernet, rp2040, Portenta-H7, ESP32, ESP8266, W5x00, Ethernet, Ethernet2, Ethernet3, EthernetLarge, EthernetENC, UIPEthernet, NativeEthernet, ENC28J60, rpi-pico, http, web, server, client, Mega",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=WebSockets_Generic
version=2.14.0
version=2.14.1
author=Markus Sattler, Khoi Hoang <[email protected]>
maintainer=Khoi Hoang <[email protected]>
sentence=RFC6455-based WebSockets Server and Client for Arduino boards, such as nRF52, Portenta_H7, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, RP2040-based boards, besides ESP8266/ESP32 (ESP32, ESP32_S2, ESP32_S3 and ESP32_C3) and WT32_ETH01. Ethernet shields W5100, W5200, W5500, ENC28J60, Teensy 4.1 NativeEthernet/QNEthernet or Portenta_H7 WiFi/Ethernet. Now supporting websocket only mode for Socket.IO
Expand Down
3 changes: 2 additions & 1 deletion src/SocketIOclient_Generic-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/SocketIOclient_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebSockets4WebServer_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
5 changes: 3 additions & 2 deletions src/WebSocketsClient_Generic-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -420,7 +421,7 @@ void WebSocketsClient::loop()
}

////////////////////
#if defined(ESP32) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_RTL8720DN)
#if defined(ESP32) /*|| (WEBSOCKETS_NETWORK_TYPE == NETWORK_RTL8720DN)*/
else if (!SSL_FINGERPRINT_IS_SET)
{
// ESP32 has setInsecure() now from v1.0.6
Expand Down
3 changes: 2 additions & 1 deletion src/WebSocketsClient_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebSocketsDebug_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -54,6 +54,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebSocketsServer_Generic-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebSocketsServer_Generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/WebSockets_Generic-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Version: 2.14.0
Version: 2.14.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand Down Expand Up @@ -58,6 +58,7 @@
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
*****************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit b8aec0c

Please sign in to comment.