From d200298ca6390800dcf76a352d972847208ad679 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Thu, 6 Oct 2022 19:25:14 -0400 Subject: [PATCH] v1.6.0 to save heap when sending large data ### 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) 2. Add functions and example `Async_AdvancedWebServer_favicon` to support `favicon.ico` 3. Add multiple examples to demo the new feature 4. Fix issue with slow browsers or network 5. Change license from `MIT` to `GPLv3` to match with original [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) license --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 54f2d95..c1b8ab9 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ This is very critical in use-cases where sending `very large data` is necessary, 1. The traditional function used to send `Arduino String` is -https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L424 +https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L424 ```cpp void send(int code, const String& contentType = String(), const String& content = String()); @@ -189,10 +189,10 @@ The required additional HEAP is about **2 times of the String size** 2. To use `CString` with copying while sending. Use function -https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L425 +https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L425 ```cpp -void send(int code, const String& contentType, const char *content, bool nonCopyingSend = true); // RSMOD +void send(int code, const String& contentType, const char *content, bool copyingSend = true); // RSMOD ``` such as @@ -206,10 +206,10 @@ The required additional HEAP is also about **2 times of the CString size** becau 3. To use `CString` without copying while sending. Use function -https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L425 +https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L425 ```cpp -void send(int code, const String& contentType, const char *content, bool nonCopyingSend = true); // RSMOD +void send(int code, const String& contentType, const char *content, bool copyingSend = true); // RSMOD ``` such as