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

Commit 20583cd

Browse files
authored
v2.14.2 to fix ESP8266 Async Bug
### Release v2.14.2 1. Fix Async bug for ESP8266 when using NETWORK_ESP8266_ASYNC 2. Add example [ESP8266_AsyncWSClient](examples/Async/ESP8266_AsyncWSClient) 3. Update `platformio.ini` to temporarily use ESP32 core v2.0.0+ and use [ESPAsyncTCP](https://github.com/me-no-dev/ESPAsyncTCP) library for ESP8266 Async 4. Update `Packages' Patches`
1 parent 8f29589 commit 20583cd

16 files changed

+314
-525
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP8266 core v3.0.2, ArduinoCore-mbed v2.7.2, etc.)
18+
* Board Core Version (e.g. Arduino SAMDUE core v1.6.12, ESP8266 core v3.0.2, ArduinoCore-mbed v3.0.0, etc.)
1919
* Contextual information (e.g. what you were trying to achieve)
2020
* Simplest possible steps to reproduce
2121
* Anything that might be relevant in your opinion, such as:
@@ -28,9 +28,9 @@ Please ensure to specify the following:
2828
```
2929
Arduino IDE version: 1.8.19
3030
RASPBERRY_PI_PICO board
31-
ArduinoCore-mbed v2.7.2
31+
ArduinoCore-mbed v3.0.0
3232
OS: Ubuntu 20.04 LTS
33-
Linux xy-Inspiron-3593 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
33+
Linux xy-Inspiron-3593 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3434
3535
Context:
3636
I encountered an endless loop while trying to connect to Local WiFi.

README.md

Lines changed: 102 additions & 230 deletions
Large diffs are not rendered by default.

changelog.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Release v2.14.2](#release-v2142)
1516
* [Release v2.14.1](#release-v2141)
1617
* [Release v2.14.0](#release-v2140)
1718
* [Release v2.13.0](#release-v2130)
@@ -55,10 +56,17 @@
5556

5657
## Changelog
5758

59+
### Release v2.14.2
60+
61+
1. Fix Async bug for ESP8266 when using NETWORK_ESP8266_ASYNC
62+
2. Add example [ESP8266_AsyncWSClient](examples/Async/ESP8266_AsyncWSClient)
63+
3. Update `platformio.ini` to temporarily use ESP32 core v2.0.0+ and use [ESPAsyncTCP](https://github.com/me-no-dev/ESPAsyncTCP) library for ESP8266 Async
64+
4. Update `Packages' Patches`
65+
5866
### Release v2.14.1
5967

6068
1. Fix setInsecure() bug for WIO_Terminal.
61-
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.
69+
2. Update `Packages' Patches` for `Seeeduino` core. Be sure to use the `Packages_Patches` of this library version v2.14.1+ to avoid compiler error.
6270

6371
### Release v2.14.0
6472

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WebSockets_Generic",
3-
"version": "2.14.1",
3+
"version": "2.14.2",
44
"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",
55
"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",
66
"authors": [

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WebSockets_Generic
2-
version=2.14.1
2+
version=2.14.2
33
author=Markus Sattler, Khoi Hoang <khoih.prog@gmail.com>
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
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

platformio/platformio.ini

Lines changed: 45 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,47 @@ lib_compat_mode = strict
4040

4141
lib_deps =
4242
; PlatformIO 4.x
43-
WiFiNINA_Generic@~1.8.14-3
44-
WiFiWebServer@~1.6.1
45-
EthernetWebServer@~2.0.0
46-
WebServer_WT32_ETH01@~1.4.1
47-
EthernetWebServer_STM32@>=1.3.3
48-
Ethernet@~2.0.0
49-
EthernetLarge@~2.0.0
50-
Ethernet2@~1.0.4
51-
Ethernet3@~1.5.5
52-
EthernetENC@~2.0.2
53-
UIPEthernet@~2.0.8
54-
STM32duino LwIP@>=2.1.2
55-
STM32duino STM32Ethernet@>=1.2.0
56-
DoubleResetDetector_Generic@>=1.8.0
57-
SinricPro_Generic@>=2.8.4
58-
FlashStorage_SAMD@>=1.3.2
59-
FlashStorage_STM32@~1.2.0
60-
QNEthernet@~0.13.0
61-
https://github.com/khoih-prog/WiFi101
43+
; WiFiNINA_Generic@~1.8.14-3
44+
; WiFiWebServer@~1.6.1
45+
; EthernetWebServer@~2.0.0
46+
; WebServer_WT32_ETH01@~1.4.1
47+
; EthernetWebServer_STM32@>=1.3.3
48+
; Ethernet@~2.0.0
49+
; EthernetLarge@~2.0.0
50+
; Ethernet2@~1.0.4
51+
; Ethernet3@~1.5.5
52+
; EthernetENC@~2.0.2
53+
; UIPEthernet@~2.0.8
54+
; STM32duino LwIP@>=2.1.2
55+
; STM32duino STM32Ethernet@>=1.2.0
56+
; DoubleResetDetector_Generic@>=1.8.0
57+
; SinricPro_Generic@>=2.8.4
58+
; FlashStorage_SAMD@>=1.3.2
59+
; FlashStorage_STM32@~1.2.0
60+
; QNEthernet@~0.13.0
61+
; https://github.com/khoih-prog/WiFi101
62+
; ESPAsyncTCP@>=1.2.2
6263
; PlatformIO 5.x
63-
; khoih-prog/WiFiNINA_Generic@~1.8.14-3
64-
; khoih-prog/WiFiWebServer@~1.6.1
65-
; khoih-prog/EthernetWebServer@~2.0.0
66-
; khoih-prog/WebServer_WT32_ETH01@~1.4.1
67-
; khoih-prog/EthernetWebServer_STM32@>=1.3.3
68-
; PaulStoffregen/Ethernet@~2.0.0
69-
; PaulStoffregen/EthernetLarge@~2.0.0
70-
; adafruit/Ethernet2@~1.0.4
71-
; sstaub/Ethernet3@~1.5.5
72-
; jandrassy/EthernetENC@~2.0.2
73-
; UIPEthernet/UIPEthernet@~2.0.8
74-
; stm32duino/STM32duino LwIP@>=2.1.2
75-
; stm32duino/STM32duino STM32Ethernet@>=1.2.0
76-
; khoih-prog/DoubleResetDetector_Generic@>=1.8.0
77-
; khoih-prog/SinricPro_Generic@>=2.8.4
78-
; khoih-prog/FlashStorage_SAMD@~1.3.2
79-
; khoih-prog/FlashStorage_STM32@~1.2.0
80-
; ssilverman/QNEthernet@~0.13.0
81-
; https://github.com/khoih-prog/WiFi101
64+
khoih-prog/WiFiNINA_Generic@~1.8.14-3
65+
khoih-prog/WiFiWebServer@~1.6.1
66+
khoih-prog/EthernetWebServer@~2.0.0
67+
khoih-prog/WebServer_WT32_ETH01@~1.4.1
68+
khoih-prog/EthernetWebServer_STM32@>=1.3.3
69+
PaulStoffregen/Ethernet@~2.0.0
70+
PaulStoffregen/EthernetLarge@~2.0.0
71+
adafruit/Ethernet2@~1.0.4
72+
sstaub/Ethernet3@~1.5.5
73+
jandrassy/EthernetENC@~2.0.2
74+
UIPEthernet/UIPEthernet@~2.0.8
75+
stm32duino/STM32duino LwIP@>=2.1.2
76+
stm32duino/STM32duino STM32Ethernet@>=1.2.0
77+
khoih-prog/DoubleResetDetector_Generic@>=1.8.0
78+
khoih-prog/SinricPro_Generic@>=2.8.4
79+
khoih-prog/FlashStorage_SAMD@~1.3.2
80+
khoih-prog/FlashStorage_STM32@~1.2.0
81+
ssilverman/QNEthernet@~0.13.0
82+
https://github.com/khoih-prog/WiFi101
83+
me-no-dev/ESPAsyncTCP@>=1.2.2
8284

8385
build_flags =
8486
; set your debug output (default=Serial)
@@ -132,7 +134,11 @@ board = nodemcuv2
132134
;board = esp32doit-devkit-v1
133135

134136
[env:ESP32]
135-
platform = espressif32
137+
;platform = espressif32
138+
139+
; Temporarily, For ESP32 core v2.0.0+
140+
platform = https://github.com/Jason2866/platform-espressif32.git#52fb773
141+
136142
framework = arduino, espidf
137143
; ============================================================
138144
; Board configuration

src/SocketIOclient_Generic-Impl.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,20 @@
2828
License along with this library; if not, write to the Free Software
2929
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3030
31-
Version: 2.14.1
31+
Version: 2.14.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
3535
2.1.3 K Hoang 15/05/2020 Initial porting to support SAMD21, SAMD51, nRF52 boards, such as AdaFruit Feather nRF52832,
3636
nRF52840 Express, BlueFruit Sense, Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
37-
2.2.1 K Hoang 18/05/2020 Bump up to sync with v2.2.1 of original WebSockets library
38-
2.2.2 K Hoang 25/05/2020 Add support to Teensy, SAM DUE and STM32. Enable WebSocket Server for new supported boards.
39-
2.2.3 K Hoang 02/08/2020 Add support to W5x00's Ethernet2, Ethernet3, EthernetLarge Libraries.
40-
Add support to STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards.
41-
2.3.1 K Hoang 07/10/2020 Sync with v2.3.1 of original WebSockets library. Add ENC28J60 EthernetENC library support
42-
2.3.2 K Hoang 12/11/2020 Add RTL8720DN Seeed_Arduino_rpcWiFi library support
43-
2.3.3 K Hoang 28/11/2020 Fix compile error for WIO_TERMINAL and boards using libraries with lib64.
44-
2.3.4 K Hoang 12/12/2020 Add SSL support to SAMD21 Nano-33-IoT using WiFiNINA. Upgrade WS and WSS examples.
45-
2.4.0 K Hoang 06/02/2021 Add support to Teensy 4.1 NativeEthernet and STM32 built-in LAN8742A.
46-
Sync with v2.3.4 of original WebSockets library
47-
2.4.1 K Hoang 19/03/2021 Sync with v2.3.5 of original WebSockets library to adapt to ESP32 SSL changes
48-
2.5.0 K Hoang 22/05/2021 Add support to WiFi101
49-
2.5.1 K Hoang 22/05/2021 Default to EIO4 for Socket.IO. Permit increase reconnectInterval in Socket.IO
50-
2.6.0 K Hoang 23/05/2021 Fix breaking problem with SocketIO. Add setExtraHeaders to SocketIO
51-
2.7.0 K Hoang 24/05/2021 Add support to RP2040-based boards using Arduino-pico and Arduino mbed_rp2040 core
52-
2.8.0 K Hoang 08/07/2021 Add support to WT32_ETH01 (ESP32 + LAN8720) boards
53-
2.9.0 K Hoang 05/09/2021 Add support to QNEthernet Library for Teensy 4.1
54-
2.10.0 K Hoang 18/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
55-
2.10.1 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
37+
...
5638
2.11.0 K Hoang 30/11/2021 Auto detect ESP32 core version. Fix bug in examples
5739
2.11.1 K Hoang 12/12/2021 Add option to use transport=websocket with sticky-session SIO server
5840
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
5941
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
6042
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
6143
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
44+
2.14.2 K Hoang 27/03/2022 Fix Async bug for ESP8266 when using NETWORK_ESP8266_ASYNC
6245
*****************************************************************************************************************************/
6346

6447
#pragma once

src/SocketIOclient_Generic.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,20 @@
2828
License along with this library; if not, write to the Free Software
2929
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3030
31-
Version: 2.14.1
31+
Version: 2.14.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
3535
2.1.3 K Hoang 15/05/2020 Initial porting to support SAMD21, SAMD51, nRF52 boards, such as AdaFruit Feather nRF52832,
3636
nRF52840 Express, BlueFruit Sense, Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
37-
2.2.1 K Hoang 18/05/2020 Bump up to sync with v2.2.1 of original WebSockets library
38-
2.2.2 K Hoang 25/05/2020 Add support to Teensy, SAM DUE and STM32. Enable WebSocket Server for new supported boards.
39-
2.2.3 K Hoang 02/08/2020 Add support to W5x00's Ethernet2, Ethernet3, EthernetLarge Libraries.
40-
Add support to STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards.
41-
2.3.1 K Hoang 07/10/2020 Sync with v2.3.1 of original WebSockets library. Add ENC28J60 EthernetENC library support
42-
2.3.2 K Hoang 12/11/2020 Add RTL8720DN Seeed_Arduino_rpcWiFi library support
43-
2.3.3 K Hoang 28/11/2020 Fix compile error for WIO_TERMINAL and boards using libraries with lib64.
44-
2.3.4 K Hoang 12/12/2020 Add SSL support to SAMD21 Nano-33-IoT using WiFiNINA. Upgrade WS and WSS examples.
45-
2.4.0 K Hoang 06/02/2021 Add support to Teensy 4.1 NativeEthernet and STM32 built-in LAN8742A.
46-
Sync with v2.3.4 of original WebSockets library
47-
2.4.1 K Hoang 19/03/2021 Sync with v2.3.5 of original WebSockets library to adapt to ESP32 SSL changes
48-
2.5.0 K Hoang 22/05/2021 Add support to WiFi101
49-
2.5.1 K Hoang 22/05/2021 Default to EIO4 for Socket.IO. Permit increase reconnectInterval in Socket.IO
50-
2.6.0 K Hoang 23/05/2021 Fix breaking problem with SocketIO. Add setExtraHeaders to SocketIO
51-
2.7.0 K Hoang 24/05/2021 Add support to RP2040-based boards using Arduino-pico and Arduino mbed_rp2040 core
52-
2.8.0 K Hoang 08/07/2021 Add support to WT32_ETH01 (ESP32 + LAN8720) boards
53-
2.9.0 K Hoang 05/09/2021 Add support to QNEthernet Library for Teensy 4.1
54-
2.10.0 K Hoang 18/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
55-
2.10.1 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
37+
...
5638
2.11.0 K Hoang 30/11/2021 Auto detect ESP32 core version. Fix bug in examples
5739
2.11.1 K Hoang 12/12/2021 Add option to use transport=websocket with sticky-session SIO server
5840
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
5941
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
6042
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
6143
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
44+
2.14.2 K Hoang 27/03/2022 Fix Async bug for ESP8266 when using NETWORK_ESP8266_ASYNC
6245
*****************************************************************************************************************************/
6346

6447
#pragma once

src/WebSockets4WebServer_Generic.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,20 @@
2828
License along with this library; if not, write to the Free Software
2929
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3030
31-
Version: 2.14.1
31+
Version: 2.14.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
3535
2.1.3 K Hoang 15/05/2020 Initial porting to support SAMD21, SAMD51, nRF52 boards, such as AdaFruit Feather nRF52832,
3636
nRF52840 Express, BlueFruit Sense, Itsy-Bitsy nRF52840 Express, Metro nRF52840 Express, etc.
37-
2.2.1 K Hoang 18/05/2020 Bump up to sync with v2.2.1 of original WebSockets library
38-
2.2.2 K Hoang 25/05/2020 Add support to Teensy, SAM DUE and STM32. Enable WebSocket Server for new supported boards.
39-
2.2.3 K Hoang 02/08/2020 Add support to W5x00's Ethernet2, Ethernet3, EthernetLarge Libraries.
40-
Add support to STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards.
41-
2.3.1 K Hoang 07/10/2020 Sync with v2.3.1 of original WebSockets library. Add ENC28J60 EthernetENC library support
42-
2.3.2 K Hoang 12/11/2020 Add RTL8720DN Seeed_Arduino_rpcWiFi library support
43-
2.3.3 K Hoang 28/11/2020 Fix compile error for WIO_TERMINAL and boards using libraries with lib64.
44-
2.3.4 K Hoang 12/12/2020 Add SSL support to SAMD21 Nano-33-IoT using WiFiNINA. Upgrade WS and WSS examples.
45-
2.4.0 K Hoang 06/02/2021 Add support to Teensy 4.1 NativeEthernet and STM32 built-in LAN8742A.
46-
Sync with v2.3.4 of original WebSockets library
47-
2.4.1 K Hoang 19/03/2021 Sync with v2.3.5 of original WebSockets library to adapt to ESP32 SSL changes
48-
2.5.0 K Hoang 22/05/2021 Add support to WiFi101
49-
2.5.1 K Hoang 22/05/2021 Default to EIO4 for Socket.IO. Permit increase reconnectInterval in Socket.IO
50-
2.6.0 K Hoang 23/05/2021 Fix breaking problem with SocketIO. Add setExtraHeaders to SocketIO
51-
2.7.0 K Hoang 24/05/2021 Add support to RP2040-based boards using Arduino-pico and Arduino mbed_rp2040 core
52-
2.8.0 K Hoang 08/07/2021 Add support to WT32_ETH01 (ESP32 + LAN8720) boards
53-
2.9.0 K Hoang 05/09/2021 Add support to QNEthernet Library for Teensy 4.1
54-
2.10.0 K Hoang 18/09/2021 Add support to Portenta_H7, using either WiFi or Vision-shield Ethernet
55-
2.10.1 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
37+
...
5638
2.11.0 K Hoang 30/11/2021 Auto detect ESP32 core version. Fix bug in examples
5739
2.11.1 K Hoang 12/12/2021 Add option to use transport=websocket with sticky-session SIO server
5840
2.12.0 K Hoang 28/01/2022 Supporting SSL for ESP32-based WT32_ETH01 boards
5941
2.13.0 K Hoang 14/02/2022 Add support to ESP32_S3. Add PING and PONG SocketIO events
6042
2.14.0 K Hoang 17/02/2022 Suppress unnecessary warnings. Optimize code by passing by reference instead of value
6143
2.14.1 K Hoang 18/02/2022 Fix setInsecure() bug for WIO_Terminal. Update Packages_Patches for Seeeduino
44+
2.14.2 K Hoang 27/03/2022 Fix Async bug for ESP8266 when using NETWORK_ESP8266_ASYNC
6245
*****************************************************************************************************************************/
6346

6447
#pragma once

0 commit comments

Comments
 (0)