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

Commit 4d1045d

Browse files
authored
Update Async_AdvancedWebServer_MemoryIssues_Send C String.ino
1 parent c7a15b7 commit 4d1045d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/Ethernet/Async_AdvancedWebServer_MemoryIssues_Send C String/Async_AdvancedWebServer_MemoryIssues_Send C String.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ void handleRoot(AsyncWebServerRequest *request)
107107
snprintf(temp, BUFFER_SIZE - 1,
108108
"<html>\
109109
<head>\
110+
<meta http-equiv='refresh' content='5'/>\
110111
<title>AsyncWebServer-%s</title>\
111112
<style>\
112113
body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #000088; }\
@@ -166,7 +167,8 @@ void PrintHeapData(String hIn){
166167
char *cStr;
167168

168169

169-
void drawGraph(AsyncWebServerRequest *request) {
170+
void drawGraph(AsyncWebServerRequest *request)
171+
{
170172
char temp[80];
171173

172174
cStr[0] = '\0';
@@ -183,6 +185,7 @@ void drawGraph(AsyncWebServerRequest *request) {
183185
strcat(cStr, temp);
184186
y = y2;
185187
}
188+
186189
strcat(cStr, "</g>\n</svg>\n");
187190

188191
PrintHeapData("Pre Send");
@@ -211,8 +214,6 @@ void setup()
211214
Serial.println(PORTENTA_H7_ASYNC_TCP_VERSION);
212215
Serial.println(PORTENTA_H7_ASYNC_WEBSERVER_VERSION);
213216

214-
215-
216217
SDRAM.begin();
217218

218219
cStr = (char *)SDRAM.malloc(100000); // make a little larger than required

0 commit comments

Comments
 (0)