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

Commit

Permalink
v1.6.1 to not destroy original CString
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
khoih-prog authored Oct 5, 2022
1 parent d901ee5 commit 6c499f1
Show file tree
Hide file tree
Showing 26 changed files with 127 additions and 110 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## Table of contents

* [Changelog](#changelog)
* [Releases v1.6.1](#releases-v161)
* [Releases v1.6.0](#releases-v160)
* [Releases v1.5.0](#releases-v150)
* [Releases v1.4.1](#releases-v141)
Expand All @@ -26,6 +27,10 @@

## Changelog

#### Releases v1.6.1

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)

#### Releases v1.6.0

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)
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":"AsyncWebServer_WT32_ETH01",
"version": "1.6.0",
"version": "1.6.1",
"description":"Asynchronous HTTP and WebSocket Server Library for WT32_ETH01 (ESP32 + LAN8720). Now supporting using CString to save heap to send very large data",
"keywords":"http, async, async-webserver, websocket, webserver, esp32, wt32-eth01, lan8720, lan8720a",
"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=AsyncWebServer_WT32_ETH01
version=1.6.0
version=1.6.1
author=Hristo Gochkov,Khoi Hoang
maintainer=Khoi Hoang <khoih.prog@gmail.com>
license=GPLv3
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncEventSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#include "Arduino.h"
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncEventSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef ASYNCEVENTSOURCE_H_
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncJson.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/
/*
Async Response to use with ArduinoJson and AsyncWebServer
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebServer_WT32_ETH01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#include "AsyncWebServer_WT32_ETH01.h"
Expand Down
13 changes: 10 additions & 3 deletions src/AsyncWebServer_WT32_ETH01.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef _AsyncWebServer_WT32_ETH01_H_
Expand Down Expand Up @@ -61,16 +62,22 @@
#warning Using code for ESP32 core v2.0.0+ in AsyncWebServer_WT32_ETH01.h
#endif

#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.0 for core v2.0.0+"
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.1 for core v2.0.0+"
#else

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

#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.0 for core v1.0.6-"
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.6.1 for core v1.0.6-"
#endif

#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_MAJOR 1
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_MINOR 6
#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_PATCH 1

#define ASYNC_WEBSERVER_WT32_ETH01_VERSION_INT 1006001

/////////////////////////////////////////////////

#ifndef WT32_ETH01_AWS_UNUSED
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebServer_WT32_ETH01_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#include "Arduino.h"
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef ASYNCWEBSOCKET_H_
Expand Down
3 changes: 2 additions & 1 deletion src/AsyncWebSynchronization.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef ASYNCWEBSYNCHRONIZATION_H_
Expand Down
3 changes: 2 additions & 1 deletion src/StringArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef STRINGARRAY_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WT32_ETH01_SPIFFSEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#include "WT32_ETH01_SPIFFSEditor.h"
Expand Down
3 changes: 2 additions & 1 deletion src/WT32_ETH01_SPIFFSEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef WT32_ETH01_SPIFFSEditor_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebAuthentication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#include "WebAuthentication.h"
Expand Down
3 changes: 2 additions & 1 deletion src/WebAuthentication.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef WEB_AUTHENTICATION_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebHandlerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef ASYNCWEBSERVERHANDLERIMPL_H_
Expand Down
3 changes: 2 additions & 1 deletion src/WebRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

//#include "ESPAsyncWebServer.h"
Expand Down
4 changes: 3 additions & 1 deletion src/WebResponseImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You should have received a copy of the GNU Lesser General Public 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: 1.6.0
Version: 1.6.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -34,6 +34,7 @@
1.4.1 K Hoang 29/11/2021 Fix bug in examples to reduce connection time
1.5.0 K Hoang 01/10/2022 Fix AsyncWebSocket bug
1.6.0 K Hoang 04/10/2022 Option to use cString instead of String to save Heap
1.6.1 K Hoang 05/10/2022 Don't need memmove(), String no longer destroyed
*****************************************************************************************************************************/

#ifndef ASYNCWEBSERVERRESPONSEIMPL_H_
Expand All @@ -57,6 +58,7 @@ class AsyncBasicResponse: public AsyncWebServerResponse
String _content;

char *_contentCstr; // RSMOD
String _partialHeader;

public:
AsyncBasicResponse(int code, const String& contentType = String(), const String& content = String());
Expand Down
Loading

0 comments on commit 6c499f1

Please sign in to comment.