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

Commit 7c0a410

Browse files
authored
v1.2.0 to save heap when sending large data
### Release v1.2.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 multiple examples to demo the new feature
1 parent 51d3fd1 commit 7c0a410

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/MQTT_ThingStream/MQTT_ThingStream.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void setup()
178178
{
179179
// Open serial communications and wait for port to open:
180180
Serial.begin(115200);
181-
while (!Serial);
181+
while (!Serial && millis() < 5000);
182182

183183
Serial.print("\nStart MQTT_ThingStream on "); Serial.print(BOARD_NAME);
184184
Serial.print(" with "); Serial.println(SHIELD_TYPE);

examples/WebClient/WebClient.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setup()
4848
{
4949
// Open serial communications and wait for port to open:
5050
Serial.begin(115200);
51-
while (!Serial);
51+
while (!Serial && millis() < 5000);
5252

5353
Serial.print("\nStart WebClient on "); Serial.print(BOARD_NAME);
5454
Serial.print(" with "); Serial.println(SHIELD_TYPE);

examples/WebClientRepeating/WebClientRepeating.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void setup()
8181
{
8282
// Open serial communications and wait for port to open:
8383
Serial.begin(115200);
84-
while (!Serial);
84+
while (!Serial && millis() < 5000);
8585

8686
Serial.print("\nStart WebClientRepeating on "); Serial.print(BOARD_NAME);
8787
Serial.print(" with "); Serial.println(SHIELD_TYPE);

0 commit comments

Comments
 (0)