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

Commit

Permalink
v1.6.0 to save heap when sending large data
Browse files Browse the repository at this point in the history
### 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](khoih-prog/Portenta_H7_AsyncWebServer#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
  • Loading branch information
khoih-prog authored Oct 6, 2022
1 parent c14f228 commit d200298
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d200298

Please sign in to comment.