Skip to content

Commit

Permalink
update slow example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Dec 10, 2024
1 parent 25742e1 commit 359cc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/SimpleServer/SimpleServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void setup() {
uint32_t l = request->getParam("l")->value().toInt();
Serial.printf("d = %" PRIu32 ", l = %" PRIu32 "\n", d, l);
AsyncWebServerResponse* response = request->beginChunkedResponse("text/html", [d, l](uint8_t* buffer, size_t maxLen, size_t index) -> size_t {
Serial.printf("%" PRIu32 "\n", index);
Serial.printf("%u\n", index);
// finished ?
if (index >= l)
return 0;
Expand Down

0 comments on commit 359cc68

Please sign in to comment.