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

Commit 6c499f1

Browse files
authored
v1.6.1 to not destroy original CString
#### Releases v1.6.1 1. Don't need `memmove()`, CString no longer destroyed. Check [All memmove() removed - string no longer destroyed #11](khoih-prog/Portenta_H7_AsyncWebServer#11)
1 parent d901ee5 commit 6c499f1

26 files changed

+127
-110
lines changed

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
## Table of contents
1212

1313
* [Changelog](#changelog)
14+
* [Releases v1.6.1](#releases-v161)
1415
* [Releases v1.6.0](#releases-v160)
1516
* [Releases v1.5.0](#releases-v150)
1617
* [Releases v1.4.1](#releases-v141)
@@ -26,6 +27,10 @@
2627

2728
## Changelog
2829

30+
#### Releases v1.6.1
31+
32+
1. Don't need `memmove()`, CString no longer destroyed. Check [All memmove() removed - string no longer destroyed #11](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/11)
33+
2934
#### Releases v1.6.0
3035

3136
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)

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"AsyncWebServer_WT32_ETH01",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description":"Asynchronous HTTP and WebSocket Server Library for WT32_ETH01 (ESP32 + LAN8720). Now supporting using CString to save heap to send very large data",
55
"keywords":"http, async, async-webserver, websocket, webserver, esp32, wt32-eth01, lan8720, lan8720a",
66
"authors":

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=AsyncWebServer_WT32_ETH01
2-
version=1.6.0
2+
version=1.6.1
33
author=Hristo Gochkov,Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=GPLv3

src/AsyncEventSource.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#include "Arduino.h"

src/AsyncEventSource.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef ASYNCEVENTSOURCE_H_

src/AsyncJson.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839
/*
3940
Async Response to use with ArduinoJson and AsyncWebServer

src/AsyncWebServer_WT32_ETH01.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#include "AsyncWebServer_WT32_ETH01.h"

src/AsyncWebServer_WT32_ETH01.h

+10-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef _AsyncWebServer_WT32_ETH01_H_
@@ -61,16 +62,22 @@
6162
#warning Using code for ESP32 core v2.0.0+ in AsyncWebServer_WT32_ETH01.h
6263
#endif
6364

64-
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.0 for core v2.0.0+"
65+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.1 for core v2.0.0+"
6566
#else
6667

6768
#if (_ASYNC_WEBSERVER_LOGLEVEL_ > 2 )
6869
#warning Using code for ESP32 core v1.0.6- in AsyncWebServer_WT32_ETH01.h
6970
#endif
7071

71-
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.0 for core v1.0.6-"
72+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.1 for core v1.0.6-"
7273
#endif
7374

75+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_MAJOR 1
76+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_MINOR 6
77+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_PATCH 1
78+
79+
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_INT 1006001
80+
7481
/////////////////////////////////////////////////
7582

7683
#ifndef WT32_ETH01_AWS_UNUSED

src/AsyncWebServer_WT32_ETH01_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#pragma once

src/AsyncWebSocket.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#include "Arduino.h"

src/AsyncWebSocket.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef ASYNCWEBSOCKET_H_

src/AsyncWebSynchronization.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef ASYNCWEBSYNCHRONIZATION_H_

src/StringArray.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef STRINGARRAY_H_

src/WT32_ETH01_SPIFFSEditor.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#include "WT32_ETH01_SPIFFSEditor.h"

src/WT32_ETH01_SPIFFSEditor.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef WT32_ETH01_SPIFFSEditor_H_

src/WebAuthentication.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#include "WebAuthentication.h"

src/WebAuthentication.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef WEB_AUTHENTICATION_H_

src/WebHandlerImpl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef ASYNCWEBSERVERHANDLERIMPL_H_

src/WebRequest.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
//#include "ESPAsyncWebServer.h"

src/WebResponseImpl.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You should have received a copy of the GNU Lesser General Public License along with this library;
2323
if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424
25-
Version: 1.6.0
25+
Version: 1.6.1
2626
2727
Version Modified By Date Comments
2828
------- ----------- ---------- -----------
@@ -34,6 +34,7 @@
3434
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
3535
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
3636
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
37+
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
3738
*****************************************************************************************************************************/
3839

3940
#ifndef ASYNCWEBSERVERRESPONSEIMPL_H_
@@ -57,6 +58,7 @@ class AsyncBasicResponse: public AsyncWebServerResponse
5758
String _content;
5859

5960
char *_contentCstr; // RSMOD
61+
String _partialHeader;
6062

6163
public:
6264
AsyncBasicResponse(int code, const String& contentType = String(), const String& content = String());

0 commit comments

Comments
 (0)