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

Commit 5c51343

Browse files
authored
v1.4.0 to save heap when sending large data
### Releases v1.4.0 1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8) 2. Add multiple examples to demo the new feature
1 parent b10ca76 commit 5c51343

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
## Table of contents
1616

1717
* [Table of contents](#table-of-contents)
18-
* [Important Note from v1.4.0](#Important-Note-from-140)
18+
* [Important Note from v1.4.0](#Important-Note-from-v140)
1919
* [Why do we need this Portenta_H7_AsyncWebServer library](#why-do-we-need-this-Portenta_H7_AsyncWebServer-library)
2020
* [Features](#features)
2121
* [Why Async is better](#why-async-is-better)
@@ -114,6 +114,7 @@
114114
* [5. Async_HTTPBasicAuth on PORTENTA_H7_M7 using Ethernet](#5-Async_HTTPBasicAuth-on-PORTENTA_H7_M7-using-Ethernet)
115115
* [6. Async_AdvancedWebServer on PORTENTA_H7_M7 using Ethernet](#6-Async_AdvancedWebServer-on-PORTENTA_H7_M7-using-Ethernet)
116116
* [7. Async_AdvancedWebServer on PORTENTA_H7_M7 using WiFi](#7-Async_AdvancedWebServer-on-PORTENTA_H7_M7-using-WiFi)
117+
* [8. Async_AdvancedWebServer_MemoryIssues_Send_CString on PORTENTA_H7_M7 using Ethernet](#7-Async_AdvancedWebServer_MemoryIssues_Send_CString-on-PORTENTA_H7_M7-using-Ethernet)
117118
* [Debug](#debug)
118119
* [Troubleshooting](#troubleshooting)
119120
* [Issues](#issues)
@@ -131,7 +132,7 @@
131132

132133
The new `v1.4.0` has added a new and powerful feature to permit using `CString` in optional `SDRAM` to save heap to send `very large data`.
133134

134-
Check `marvelleous` PR of **@salasidis** [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8) and these new examples
135+
Check the `marvelleous` PR of **@salasidis** [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/pull/8) and these new examples
135136

136137
1. [Async_AdvancedWebServer_MemoryIssues_Send_CString for Ethernet](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/tree/main/examples/Ethernet/Async_AdvancedWebServer_MemoryIssues_Send_CString)
137138
2. [Async_AdvancedWebServer_MemoryIssues_SendArduinoString for Ethernet](https://github.com/khoih-prog/Portenta_H7_AsyncWebServer/tree/main/examples/Ethernet/Async_AdvancedWebServer_MemoryIssues_SendArduinoString)
@@ -1785,7 +1786,7 @@ You can access the Async Advanced WebServers at the displayed server IP, e.g. `1
17851786
Following is the debug terminal and screen shot when running example [Async_AdvancedWebServer_MemoryIssues_Send_CString](examples/Ethernet/Async_AdvancedWebServer_MemoryIssues_Send_CString) on Portenta_H7 Ethernet to demonstrate the new and powerful `HEAP-saving` feature
17861787

17871788

1788-
##### Using SDRAM
1789+
##### Using SDRAM => not using HEAP (14,314 bytes)
17891790

17901791
```
17911792
Start Async_AdvancedWebServer_MemoryIssues_Send_CString using SDRAM on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
@@ -1816,7 +1817,7 @@ Out String Length=31224
18161817
Out String Length=31235
18171818
```
18181819

1819-
##### Not using SDRAM ===> small heap (51823)
1820+
##### Not using SDRAM ===> small heap (51,823 bytes)
18201821

18211822
```
18221823
Start Async_AdvancedWebServer_MemoryIssues_Send_CString on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
@@ -1840,7 +1841,7 @@ Out String Length=31291
18401841
While using Arduino String, the HEAP usage is very large
18411842

18421843

1843-
#### Async_AdvancedWebServer_MemoryIssues_SendArduinoString ===> very large heap (111387)
1844+
#### Async_AdvancedWebServer_MemoryIssues_SendArduinoString ===> very large heap (111,387 bytes)
18441845

18451846
```
18461847
Start Async_AdvancedWebServer_MemoryIssues_SendArduinoString on PORTENTA_H7_M7 with Ethernet using Portenta_Ethernet Library
@@ -1877,7 +1878,7 @@ HEAP DATA - Post Send Cur heap: 79054 Res Size: 452016 Max heap: 111437
18771878
Out String Length=31280
18781879
. ......
18791880
```
1880-
```
1881+
18811882

18821883
You can access the Async Advanced WebServers at the displayed server IP, e.g. `192.168.2.123`
18831884

0 commit comments

Comments
 (0)