You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,29 +10,34 @@ However, before reporting a bug please check through the following:
10
10
11
11
If you don't find anything, please [open a new issue](https://github.com/khoih-prog/AsyncWebServer_Teensy41/issues/new).
12
12
13
+
---
14
+
13
15
### How to submit a bug report
14
16
15
17
Please ensure to specify the following:
16
18
17
19
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18
20
*`Teensyduino` Core Version (e.g. `Teensyduino core v1.57`)
19
-
*`QNEthernet` library version (e.g. `QNEthernet v0.16.0`)
21
+
*`QNEthernet` library version (e.g. `QNEthernet v0.17.0`)
20
22
* Board type and relevant info
21
23
* Contextual information (e.g. what you were trying to achieve)
22
24
* Simplest possible steps to reproduce
23
25
* Anything that might be relevant in your opinion, such as:
24
26
* Operating system (Windows, Ubuntu, etc.) and the output of `uname -a`
25
27
* Network configuration
26
28
29
+
Please be educated, civilized and constructive as you've always been. Disrespective posts against [GitHub Code of Conduct](https://docs.github.com/en/site-policy/github-terms/github-event-code-of-conduct) will be ignored and deleted.
30
+
31
+
---
27
32
28
33
### Example
29
34
30
35
```
31
36
Arduino IDE version: 1.8.19
32
37
Teensyduino core v1.57
33
-
Teensy 4.1 using QNEthernet v0.16.0
38
+
Teensy 4.1 using QNEthernet v0.17.0
34
39
OS: Ubuntu 20.04 LTS
35
-
Linux xy-Inspiron-3593 5.15.0-53-generic #59~20.04.1-Ubuntu SMP Thu Oct 20 15:10:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
40
+
Linux xy-Inspiron-3593 5.15.0-58-generic #64~20.04.1-Ubuntu SMP Fri Jan 6 16:42:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Copy file name to clipboardExpand all lines: README.md
+69-44Lines changed: 69 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@
107
107
*[6. Async_AdvancedWebServer_MemoryIssues_Send_CString on Teensy4.1 QNEthernet](#6-Async_AdvancedWebServer_MemoryIssues_Send_CString-on-Teensy41-QNEthernet)
108
108
*[7. Async_AdvancedWebServer_SendChunked on Teensy4.1 QNEthernet](#7-Async_AdvancedWebServer_SendChunked-on-Teensy41-QNEthernet)
109
109
*[8. AsyncWebServer_SendChunked on Teensy4.1 QNEthernet](#8-AsyncWebServer_SendChunked-on-Teensy41-QNEthernet)
110
+
*[9. Async_WebSocketsServer on Teensy4.1 QNEthernet](#9-Async_WebSocketsServer-on-Teensy41-QNEthernet)
110
111
*[Debug](#debug)
111
112
*[Troubleshooting](#troubleshooting)
112
113
*[Issues](#issues)
@@ -233,8 +234,8 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP
233
234
## Prerequisites
234
235
235
236
1.[`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [](https://github.com/arduino/Arduino/releases/latest)
236
-
2.[`Teensy core v1.57+`](https://www.pjrc.com/teensy/td_download.html) for Teensy 4.1. [](https://github.com/PaulStoffregen/cores/releases/latest)
237
-
3.[`QNEthernet Library version v0.16.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet
237
+
2.[`Teensy core v1.57+`](https://github.com/PaulStoffregen/cores) for Teensy 4.1. [](https://github.com/PaulStoffregen/cores/releases/latest)
238
+
3.[`QNEthernet Library version v0.17.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet
238
239
4.[`Teensy41_AsyncTCP library v1.1.0+`](https://github.com/khoih-prog/Teensy41_AsyncTCP) to use **Teensy 4.1 using QNEthernet Library**. [](https://github.com/khoih-prog/Teensy41_AsyncTCP/releases/latest)
239
240
240
241
---
@@ -1062,29 +1063,29 @@ When sending a web socket message using the above methods a buffer is created.
1062
1063
```cpp
1063
1064
void sendDataWs(AsyncWebSocketClient * client)
1064
1065
{
1065
-
DynamicJsonBuffer jsonBuffer;
1066
-
JsonObject& root = jsonBuffer.createObject();
1067
-
root["a"] = "abc";
1068
-
root["b"] = "abcd";
1069
-
root["c"] = "abcde";
1070
-
root["d"] = "abcdef";
1071
-
root["e"] = "abcdefg";
1072
-
size_t len = root.measureLength();
1073
-
AsyncWebSocketMessageBuffer * buffer = ws.makeBuffer(len); // creates a buffer (len + 1) for you.
1066
+
DynamicJsonBuffer jsonBuffer;
1067
+
JsonObject& root = jsonBuffer.createObject();
1068
+
root["a"] = "abc";
1069
+
root["b"] = "abcd";
1070
+
root["c"] = "abcde";
1071
+
root["d"] = "abcdef";
1072
+
root["e"] = "abcdefg";
1073
+
size_t len = root.measureLength();
1074
+
AsyncWebSocketMessageBuffer * buffer = ws.makeBuffer(len); // creates a buffer (len + 1) for you.
@@ -1402,7 +1403,7 @@ Following are debug terminal output and screen shots when running example [Async
1402
1403
1403
1404
```cpp
1404
1405
Start Async_AdvancedWebServer on TEENSY 4.1 with Teensy4.1 QNEthernet
1405
-
AsyncWebServer_Teensy41 v1.6.1
1406
+
AsyncWebServer_Teensy41 v1.6.2
1406
1407
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
1407
1408
HTTP EthernetWebServer is @ IP : 192.168.2.107
1408
1409
```
@@ -1420,7 +1421,7 @@ Following is debug terminal output when running example [WebClient](examples/Web
1420
1421
1421
1422
```cpp
1422
1423
Start WebClient on TEENSY 4.1 with Teensy4.1 QNEthernet
1423
-
AsyncWebServer_Teensy41 v1.6.1
1424
+
AsyncWebServer_Teensy41 v1.6.2
1424
1425
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
1425
1426
1426
1427
Starting connection to server...
@@ -1491,7 +1492,7 @@ Following is debug terminal output when running example [MQTTClient_Auth](exampl
1491
1492
1492
1493
```cpp
1493
1494
Start MQTTClient_Auth on TEENSY 4.1 with Teensy4.1 QNEthernet
1494
-
AsyncWebServer_Teensy41 v1.6.1
1495
+
AsyncWebServer_Teensy41 v1.6.2
1495
1496
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
1496
1497
Attempting MQTT connection to broker.emqx.io...connected
1497
1498
Message Send : MQTT_Pub => Hello from MQTTClient_Auth on TEENSY 4.1 with Teensy4.1 QNEthernet
@@ -1511,7 +1512,7 @@ Following is debug terminal output when running example [MQTTClient_Basic](examp
1511
1512
1512
1513
```cpp
1513
1514
Start MQTTClient_Basic on TEENSY 4.1 with Teensy4.1 QNEthernet
1514
-
AsyncWebServer_Teensy41 v1.6.1
1515
+
AsyncWebServer_Teensy41 v1.6.2
1515
1516
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
1516
1517
Attempting MQTT connection to broker.emqx.io...connected
1517
1518
Message Send : MQTT_Pub => Hello from MQTTClient_Basic on TEENSY 4.1 with Teensy4.1 QNEthernet
@@ -1538,7 +1539,7 @@ Following is debug terminal output when running example [MQTT_ThingStream](examp
1538
1539
1539
1540
```cpp
1540
1541
Start MQTT_ThingStream on TEENSY 4.1 with Teensy4.1 QNEthernet
1541
-
AsyncWebServer_Teensy41 v1.6.1
1542
+
AsyncWebServer_Teensy41 v1.6.2
1542
1543
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107
1543
1544
***************************************
1544
1545
Teensy41_Pub
@@ -1571,7 +1572,7 @@ Following is the debug terminal and screen shot when running example [Async_Adva
1571
1572
1572
1573
```cpp
1573
1574
Start Async_AdvancedWebServer_MemoryIssues_Send_CString on TEENSY 4.1 with Teensy4.1 QNEthernet
1574
-
AsyncWebServer_Teensy41 v1.6.1
1575
+
AsyncWebServer_Teensy41 v1.6.2
1575
1576
1576
1577
HEAP DATA - Start => Free heap: 483328 Used heap: 0
1577
1578
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.83
@@ -1595,7 +1596,7 @@ While using `Arduino String`, the HEAP usage is very large
1595
1596
1596
1597
```cpp
1597
1598
Start Async_AdvancedWebServer_MemoryIssues_SendArduinoString on TEENSY 4.1 with Teensy4.1 QNEthernet
1598
-
AsyncWebServer_Teensy41 v1.6.1
1599
+
AsyncWebServer_Teensy41 v1.6.2
1599
1600
1600
1601
HEAP DATA - Start => Free heap: 483328 Used heap: 0
1601
1602
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.83
@@ -1635,7 +1636,7 @@ Following is debug terminal output when running example [Async_AdvancedWebServer
1635
1636
1636
1637
```cpp
1637
1638
Start Async_AdvancedWebServer_SendChunked on TEENSY 4.1 with Teensy4.1 QNEthernet
1638
-
AsyncWebServer_Teensy41 v1.6.1
1639
+
AsyncWebServer_Teensy41 v1.6.2
1639
1640
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.92
1640
1641
AsyncWebServer is @ IP : 192.168.2.92
1641
1642
.[AWS] Total length to send in chunks = 31235
@@ -1704,7 +1705,7 @@ Following is debug terminal output when running example [AsyncWebServer_SendChun
1704
1705
1705
1706
```cpp
1706
1707
Start AsyncWebServer_SendChunked on TEENSY 4.1 with Teensy4.1 QNEthernet
1707
-
AsyncWebServer_Teensy41 v1.6.1
1708
+
AsyncWebServer_Teensy41 v1.6.2
1708
1709
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.92
1709
1710
AsyncWebServer is @ IP : 192.168.2.92
1710
1711
.[AWS] Total length to send in chunks = 46302
@@ -1750,6 +1751,30 @@ AsyncWebServer is @ IP : 192.168.2.92
1750
1751
```
1751
1752
1752
1753
1754
+
---
1755
+
1756
+
#### 9. Async_WebSocketsServer on TEENSY 4.1 QNEthernet
1757
+
1758
+
1759
+
Following is debug terminal output when running example [Async_WebSocketsServer](examples/Async_WebSocketsServer) on `Teensy4.1` using Built-in Ethernet and `QNEthernet` Library, to demo how to use to demo how to use `Async_WebSockets`. The Client is using [WSClient.py](https://github.com/khoih-prog/AsyncWebServer_Teensy41/blob/main/examples/Async_WebSocketsServer/WSClient_Python/WSClient.py)
1760
+
1761
+
1762
+
```cpp
1763
+
Starting Async_WebSocketsServer on TEENSY 4.1 with Teensy4.1 QNEthernet
1764
+
AsyncWebServer_Teensy41 v1.6.2
1765
+
Initialize Ethernet using DHCP => Connected! IP address:192.168.2.119
1766
+
ws[Server: /ws][ClientID: 1] WSClient connected
1767
+
ws[Server: /ws][ClientID: 1] text-message[len: 13]: Hello, Server
ws[Server: /ws][ClientID: 3] text-message[len: 13]: Hello, Server
1774
+
```
1775
+
1776
+
1777
+
1753
1778
---
1754
1779
---
1755
1780
@@ -1801,7 +1826,7 @@ Submit issues to: [AsyncWebServer_Teensy41 issues](https://github.com/khoih-prog
1801
1826
8. Support using `CString` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8)
1802
1827
9. Add examples [Async_AdvancedWebServer_SendChunked](https://github.com/khoih-prog/AsyncWebServer_RP2040W/tree/main/examples/Async_AdvancedWebServer_SendChunked) and [AsyncWebServer_SendChunked](https://github.com/khoih-prog/AsyncWebServer_RP2040W/tree/main/examples/AsyncWebServer_SendChunked) to demo how to use `beginChunkedResponse()` to send large `html` in chunks
1803
1828
10. Use `allman astyle` and add `utils`
1804
-
1829
+
11. Add examples [Async_WebSocketsServer](https://github.com/khoih-prog/AsyncWebServer_Teensy41/tree/main/examples/Async_WebSocketsServer) to demo how to use `Async_WebSockets`
Copy file name to clipboardExpand all lines: changelog.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,15 @@
9
9
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"alt="Donate to my libraries using BuyMeACoffee"style="height: 50px!important;width: 181px!important;" ></a>
10
10
<ahref="https://www.buymeacoffee.com/khoihprog6"title="Donate to my libraries using BuyMeACoffee"><imgsrc="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00"style="height: 20px!important;width: 200px!important;" ></a>
11
11
12
+
12
13
---
13
14
---
14
15
15
16
## Table of contents
16
17
17
18
*[Table of contents](#table-of-contents)
18
19
*[Changelog](#changelog)
20
+
*[Releases v1.6.2](#releases-v162)
19
21
*[Releases v1.6.1](#releases-v161)
20
22
*[Releases v1.6.0](#releases-v160)
21
23
*[Releases v1.5.0](#releases-v150)
@@ -26,11 +28,16 @@
26
28
27
29
## Changelog
28
30
31
+
### Releases v1.6.2
32
+
33
+
1. Add examples [Async_WebSocketsServer](https://github.com/khoih-prog/AsyncWebServer_Teensy41/tree/main/examples/Async_WebSocketsServer) to demo how to use `Async_WebSockets`
34
+
29
35
### Releases v1.6.1
30
36
31
37
1. Add examples [Async_AdvancedWebServer_SendChunked](https://github.com/khoih-prog/AsyncWebServer_Teensy41/tree/main/examples/Async_AdvancedWebServer_SendChunked) and [AsyncWebServer_SendChunked](https://github.com/khoih-prog/AsyncWebServer_Teensy41/tree/main/examples/AsyncWebServer_SendChunked) to demo how to use `beginChunkedResponse()` to send large `html` in chunks
32
38
2. Use `allman astyle` and add `utils`
33
39
40
+
34
41
### Releases v1.6.0
35
42
36
43
1. Support using `CString` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8) and [All memmove() removed - string no longer destroyed #11](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/11)
Copy file name to clipboardExpand all lines: library.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name":"AsyncWebServer_Teensy41",
3
-
"version": "1.6.1",
3
+
"version": "1.6.2",
4
4
"description":"Asynchronous HTTP and WebSocket Server Library for Teensy 4.1 using QNEthernet. This library is one of the current or future Async libraries to support Teensy 4.1 using QNEthernet, such as AsyncHTTPRequest_Generic, AsyncHTTPSRequest_Generic, AsyncMQTT_Generic, Teensy41_AsyncWebServer, Teensy41_AsyncUDP, Teensy41_AsyncDNSServer, AsyncWebServer_Teensy41_SSL, etc. Now supporting using CString to save heap to send very large data and examples to demo how to use beginChunkedResponse() to send large html in chunks",
0 commit comments