From 9a07705324748b137ee3081289a9dfe583fb480e Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:31:57 -0500 Subject: [PATCH] v1.7.0 to fix file upload ### Releases v1.7.0 1. Fix file upload to Teensy 4.1 board based on suggestions made on the PJRC forum. Align signatures of file upload handlers. For more details, please see this post: [AsyncWebServer_Teensy41 bug onUpload](https://forum.pjrc.com/index.php?threads/asyncwebserver_teensy41-bug-onupload.72220). --- CONTRIBUTING.md | 6 +++--- README.md | 26 +++++++++++++------------ changelog.md | 1 + library.json | 4 ++-- library.properties | 2 +- platformio/platformio.ini | 2 +- src/AsyncEventSource_Teensy41.cpp | 3 ++- src/AsyncEventSource_Teensy41.h | 3 ++- src/AsyncJson_Teensy41.h | 3 ++- src/AsyncWebAuthentication_Teensy41.cpp | 3 ++- src/AsyncWebAuthentication_Teensy41.h | 3 ++- src/AsyncWebHandlerImpl_Teensy41.h | 6 ++++-- src/AsyncWebHandlers_Teensy41.cpp | 3 ++- src/AsyncWebRequest_Teensy41.cpp | 6 ++++-- src/AsyncWebResponseImpl_Teensy41.h | 3 ++- src/AsyncWebResponses_Teensy41.cpp | 3 ++- src/AsyncWebServer_Teensy41.cpp | 3 ++- src/AsyncWebServer_Teensy41.h | 3 ++- src/AsyncWebServer_Teensy41.hpp | 13 +++++++------ src/AsyncWebServer_Teensy41_Debug.h | 3 ++- src/AsyncWebSocket_Teensy41.cpp | 3 ++- src/AsyncWebSocket_Teensy41.h | 3 ++- src/AsyncWebSynchronization_Teensy41.h | 3 ++- src/StringArray_Teensy41.h | 3 ++- 24 files changed, 67 insertions(+), 44 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f7c0784..15a2ee1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,7 @@ Please ensure to specify the following: * Arduino IDE version (e.g. 1.8.19) or Platform.io version * `Teensyduino` Core Version (e.g. `Teensyduino core v1.57`) -* `QNEthernet` library version (e.g. `QNEthernet v0.17.0`) +* `QNEthernet` library version (e.g. `QNEthernet v0.26.0`) * Board type and relevant info * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce @@ -35,9 +35,9 @@ Please be educated, civilized and constructive as you've always been. Disrespect ``` Arduino IDE version: 1.8.19 Teensyduino core v1.57 -Teensy 4.1 using QNEthernet v0.17.0 +Teensy 4.1 using QNEthernet v0.26.0 OS: Ubuntu 20.04 LTS -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 +Linux xy-Inspiron-3593 5.15.0-92-generic #102~20.04.1-Ubuntu SMP Mon Jan 15 13:09:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Context: I encountered a crash while using this library diff --git a/README.md b/README.md index 8d97e20..fb7e19f 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ to apply the better and faster **asynchronous** feature of the **powerful** [ESP 1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest) 2. [`Teensy core v1.57+`](https://github.com/PaulStoffregen/cores) for Teensy 4.1. [![GitHub release](https://img.shields.io/github/release/PaulStoffregen/cores.svg)](https://github.com/PaulStoffregen/cores/releases/latest) - 3. [`QNEthernet Library version v0.17.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet + 3. [`QNEthernet Library version v0.26.0+`](https://github.com/ssilverman/QNEthernet) for Teensy 4.1 built-in Ethernet 4. [`Teensy41_AsyncTCP library v1.1.0+`](https://github.com/khoih-prog/Teensy41_AsyncTCP) to use **Teensy 4.1 using QNEthernet Library**. [![GitHub release](https://img.shields.io/github/release/khoih-prog/Teensy41_AsyncTCP.svg)](https://github.com/khoih-prog/Teensy41_AsyncTCP/releases/latest) --- @@ -1404,7 +1404,7 @@ Following are debug terminal output and screen shots when running example [Async ```cpp Start Async_AdvancedWebServer on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107 HTTP EthernetWebServer is @ IP : 192.168.2.107 ``` @@ -1422,7 +1422,7 @@ Following is debug terminal output when running example [WebClient](examples/Web ```cpp Start WebClient on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107 Starting connection to server... @@ -1493,7 +1493,7 @@ Following is debug terminal output when running example [MQTTClient_Auth](exampl ```cpp Start MQTTClient_Auth on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107 Attempting MQTT connection to broker.emqx.io...connected Message Send : MQTT_Pub => Hello from MQTTClient_Auth on TEENSY 4.1 with Teensy4.1 QNEthernet @@ -1513,7 +1513,7 @@ Following is debug terminal output when running example [MQTTClient_Basic](examp ```cpp Start MQTTClient_Basic on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107 Attempting MQTT connection to broker.emqx.io...connected Message Send : MQTT_Pub => Hello from MQTTClient_Basic on TEENSY 4.1 with Teensy4.1 QNEthernet @@ -1540,7 +1540,7 @@ Following is debug terminal output when running example [MQTT_ThingStream](examp ```cpp Start MQTT_ThingStream on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.107 *************************************** Teensy41_Pub @@ -1573,7 +1573,7 @@ Following is the debug terminal and screen shot when running example [Async_Adva ```cpp Start Async_AdvancedWebServer_MemoryIssues_Send_CString on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 HEAP DATA - Start => Free heap: 483328 Used heap: 0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.83 @@ -1597,7 +1597,7 @@ While using `Arduino String`, the HEAP usage is very large ```cpp Start Async_AdvancedWebServer_MemoryIssues_SendArduinoString on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 HEAP DATA - Start => Free heap: 483328 Used heap: 0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.83 @@ -1637,7 +1637,7 @@ Following is debug terminal output when running example [Async_AdvancedWebServer ```cpp Start Async_AdvancedWebServer_SendChunked on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.92 AsyncWebServer is @ IP : 192.168.2.92 .[AWS] Total length to send in chunks = 31235 @@ -1706,7 +1706,7 @@ Following is debug terminal output when running example [AsyncWebServer_SendChun ```cpp Start AsyncWebServer_SendChunked on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.92 AsyncWebServer is @ IP : 192.168.2.92 .[AWS] Total length to send in chunks = 46302 @@ -1762,7 +1762,7 @@ Following is debug terminal output when running example [Async_WebSocketsServer] ```cpp Starting Async_WebSocketsServer on TEENSY 4.1 with Teensy4.1 QNEthernet -AsyncWebServer_Teensy41 v1.6.2 +AsyncWebServer_Teensy41 v1.7.0 Initialize Ethernet using DHCP => Connected! IP address:192.168.2.119 ws[Server: /ws][ClientID: 1] WSClient connected ws[Server: /ws][ClientID: 1] text-message[len: 13]: Hello, Server @@ -1828,7 +1828,7 @@ Submit issues to: [AsyncWebServer_Teensy41 issues](https://github.com/khoih-prog 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 10. Use `allman astyle` and add `utils` 11. Add examples [Async_WebSocketsServer](https://github.com/khoih-prog/AsyncWebServer_Teensy41/tree/main/examples/Async_WebSocketsServer) to demo how to use `Async_WebSockets` - +12. Fix `onUpload bug`. Check [AsyncWebServer_Teensy41 bug onUpload](https://forum.pjrc.com/index.php?threads/asyncwebserver_teensy41-bug-onupload.72220/) --- --- @@ -1840,11 +1840,13 @@ Submit issues to: [AsyncWebServer_Teensy41 issues](https://github.com/khoih-prog 2. Thanks to [salasidis](https://github.com/salasidis) aka [rs77can](https://forum.arduino.cc/u/rs77can) to discuss and make the following `marvellous` PRs in [Portenta_H7_AsyncWebServer library](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer) - [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8), leading to `v1.6.0` to support using `CString` to save heap to send `very large data` - [All memmove() removed - string no longer destroyed #11](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/11), leading to `v1.6.0` to remove `memmove()` and not to destroy String anymore +3. Thanks to [E. van Putten](https://github.com/edwinvp) / [Shuptuu](https://forum.pjrc.com/index.php?members/shuptuu.48798/) to make the following PR in [Fix file upload handler by adjusting function signatures #9](https://github.com/khoih-prog/AsyncWebServer_Teensy41/pull/9) leading to `v1.7.0` +
me-no-dev
⭐️⭐️ Hristo Gochkov

salasidis
⭐️ salasidis

edwinvp
E. van Putten

diff --git a/changelog.md b/changelog.md index 0181cc0..16c2074 100644 --- a/changelog.md +++ b/changelog.md @@ -17,6 +17,7 @@ * [Table of contents](#table-of-contents) * [Changelog](#changelog) + * [Releases v1.7.0](#releases-v170) * [Releases v1.6.2](#releases-v162) * [Releases v1.6.1](#releases-v161) * [Releases v1.6.0](#releases-v160) diff --git a/library.json b/library.json index 4177c5a..3fd7826 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name":"AsyncWebServer_Teensy41", - "version": "1.6.2", + "version": "1.7.0", "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", "keywords":"async, tcp, http, websocket, webserver, async-tcp, async-http, async-webserver, async-websocket, teensy, teensy41, teensy-41, qnethernet, lwip", "authors": @@ -32,7 +32,7 @@ { "owner": "ssilverman", "name": "QNEthernet", - "version": ">=0.17.0", + "version": ">=0.26.0", "platforms": ["teensy"] } ], diff --git a/library.properties b/library.properties index 6ddd817..8f6fd84 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AsyncWebServer_Teensy41 -version=1.6.2 +version=1.7.0 author=Hristo Gochkov, Khoi Hoang maintainer=Khoi Hoang sentence=Asynchronous HTTP and WebSocket Server Library for Teensy 4.1 using QNEthernet diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 1d520c9..7d4b4f3 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -41,7 +41,7 @@ lib_deps = ; ; PlatformIO 5.x khoih-prog/Teensy41_AsyncTCP@>=1.1.0 - ssilverman/QNEthernet@>=0.17.0 + ssilverman/QNEthernet@>=0.26.0 ; ============================================================ build_flags = diff --git a/src/AsyncEventSource_Teensy41.cpp b/src/AsyncEventSource_Teensy41.cpp index a265a66..790542b 100644 --- a/src/AsyncEventSource_Teensy41.cpp +++ b/src/AsyncEventSource_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) diff --git a/src/AsyncEventSource_Teensy41.h b/src/AsyncEventSource_Teensy41.h index 81d18b7..22ae496 100644 --- a/src/AsyncEventSource_Teensy41.h +++ b/src/AsyncEventSource_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncJson_Teensy41.h b/src/AsyncJson_Teensy41.h index eaf82f0..d0111ca 100644 --- a/src/AsyncJson_Teensy41.h +++ b/src/AsyncJson_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ /* Async Response to use with ArduinoJson and AsyncWebServer diff --git a/src/AsyncWebAuthentication_Teensy41.cpp b/src/AsyncWebAuthentication_Teensy41.cpp index 61c5046..7e09ed9 100644 --- a/src/AsyncWebAuthentication_Teensy41.cpp +++ b/src/AsyncWebAuthentication_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) diff --git a/src/AsyncWebAuthentication_Teensy41.h b/src/AsyncWebAuthentication_Teensy41.h index 043168a..a8bb958 100644 --- a/src/AsyncWebAuthentication_Teensy41.h +++ b/src/AsyncWebAuthentication_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebHandlerImpl_Teensy41.h b/src/AsyncWebHandlerImpl_Teensy41.h index 92762f1..d5987a9 100644 --- a/src/AsyncWebHandlerImpl_Teensy41.h +++ b/src/AsyncWebHandlerImpl_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once @@ -193,7 +194,8 @@ class AsyncCallbackWebHandler: public AsyncWebHandler ///////////////////////////////////////////////// - virtual void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final) override final + virtual void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, + bool final) override final { if (_onUpload) _onUpload(request, filename, index, data, len, final); diff --git a/src/AsyncWebHandlers_Teensy41.cpp b/src/AsyncWebHandlers_Teensy41.cpp index fede839..00a4a65 100644 --- a/src/AsyncWebHandlers_Teensy41.cpp +++ b/src/AsyncWebHandlers_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) diff --git a/src/AsyncWebRequest_Teensy41.cpp b/src/AsyncWebRequest_Teensy41.cpp index 2ab367f..469e76e 100644 --- a/src/AsyncWebRequest_Teensy41.cpp +++ b/src/AsyncWebRequest_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) @@ -587,10 +588,11 @@ void AsyncWebServerRequest::_handleUploadByte(uint8_t data, bool last) if (last || _itemBufferIndex == 1460) { //check if authenticated before calling the upload - if (_handler) + if (_handler) { _handler->handleUpload(this, _itemFilename, _itemSize - _itemBufferIndex, _itemBuffer, _itemBufferIndex, false); } + _itemBufferIndex = 0; } } diff --git a/src/AsyncWebResponseImpl_Teensy41.h b/src/AsyncWebResponseImpl_Teensy41.h index 4b4a953..8318384 100644 --- a/src/AsyncWebResponseImpl_Teensy41.h +++ b/src/AsyncWebResponseImpl_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebResponses_Teensy41.cpp b/src/AsyncWebResponses_Teensy41.cpp index 6e06f8f..c3f38fd 100644 --- a/src/AsyncWebResponses_Teensy41.cpp +++ b/src/AsyncWebResponses_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) diff --git a/src/AsyncWebServer_Teensy41.cpp b/src/AsyncWebServer_Teensy41.cpp index d622685..6296e5e 100644 --- a/src/AsyncWebServer_Teensy41.cpp +++ b/src/AsyncWebServer_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #if !defined(_AWS_TEENSY41_LOGLEVEL_) diff --git a/src/AsyncWebServer_Teensy41.h b/src/AsyncWebServer_Teensy41.h index 4c6f08e..741a917 100644 --- a/src/AsyncWebServer_Teensy41.h +++ b/src/AsyncWebServer_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #ifndef _ASYNC_WEBSERVER_TEENSY41_H_ diff --git a/src/AsyncWebServer_Teensy41.hpp b/src/AsyncWebServer_Teensy41.hpp index ae632a3..d2cd3bd 100644 --- a/src/AsyncWebServer_Teensy41.hpp +++ b/src/AsyncWebServer_Teensy41.hpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,7 +26,8 @@ 1.5.0 K Hoang 01/10/2022 Fix issue with slow browsers or network. Add function and example to support favicon.ico 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks - 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #ifndef _ASYNC_WEBSERVER_TEENSY41_HPP_ @@ -34,13 +35,13 @@ ///////////////////////////////////////////////// -#define ASYNC_WEBSERVER_TEENSY41_VERSION "AsyncWebServer_Teensy41 v1.6.2" +#define ASYNC_WEBSERVER_TEENSY41_VERSION "AsyncWebServer_Teensy41 v1.7.0" #define ASYNC_WEBSERVER_TEENSY41_VERSION_MAJOR 1 -#define ASYNC_WEBSERVER_TEENSY41_VERSION_MINOR 6 -#define ASYNC_WEBSERVER_TEENSY41_VERSION_PATCH 2 +#define ASYNC_WEBSERVER_TEENSY41_VERSION_MINOR 7 +#define ASYNC_WEBSERVER_TEENSY41_VERSION_PATCH 0 -#define ASYNC_WEBSERVER_TEENSY41_VERSION_INT 1006002 +#define ASYNC_WEBSERVER_TEENSY41_VERSION_INT 1007000 ///////////////////////////////////////////////// diff --git a/src/AsyncWebServer_Teensy41_Debug.h b/src/AsyncWebServer_Teensy41_Debug.h index 70a8e73..3cbe907 100644 --- a/src/AsyncWebServer_Teensy41_Debug.h +++ b/src/AsyncWebServer_Teensy41_Debug.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebSocket_Teensy41.cpp b/src/AsyncWebSocket_Teensy41.cpp index b903019..2c6bf5e 100644 --- a/src/AsyncWebSocket_Teensy41.cpp +++ b/src/AsyncWebSocket_Teensy41.cpp @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #include "Arduino.h" diff --git a/src/AsyncWebSocket_Teensy41.h b/src/AsyncWebSocket_Teensy41.h index 5d8f25f..ddc2c5c 100644 --- a/src/AsyncWebSocket_Teensy41.h +++ b/src/AsyncWebSocket_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/AsyncWebSynchronization_Teensy41.h b/src/AsyncWebSynchronization_Teensy41.h index 4fa7963..cc2ee5b 100644 --- a/src/AsyncWebSynchronization_Teensy41.h +++ b/src/AsyncWebSynchronization_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once diff --git a/src/StringArray_Teensy41.h b/src/StringArray_Teensy41.h index 561347b..36b9259 100644 --- a/src/StringArray_Teensy41.h +++ b/src/StringArray_Teensy41.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - Version: 1.6.2 + Version: 1.7.0 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 06/10/2022 Option to use non-destroyed cString instead of String to save Heap 1.6.1 K Hoang 10/11/2022 Add examples to demo how to use beginChunkedResponse() to send in chunks 1.6.2 K Hoang 16/01/2023 Add examples Async_WebSocketsServer + 1.7.0 K Hoang 29/01/2024 Fix file upload handler by adjusting function signatures *****************************************************************************************************************************/ #pragma once