8000 File with more than 32,767 characters (#2566) · exocode/arduino-esp32@e0beac8 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e0beac8

Browse files
Jean Marc BRUNOme-no-dev
Jean Marc BRUNO
authored andcommitted
File with more than 32,767 characters (espressif#2566)
1 parent a87b2ec commit e0beac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Update/examples/AWS_S3_OTA_Update/AWS_S3_OTA_Update.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ WiFiClient client;
2626

2727
// Variables to validate
2828
// response from S3
29-
int contentLength = 0;
29+
long contentLength = 0;
3030
bool isValidContentType = false;
3131

3232
// Your SSID and PSWD that the chip needs
@@ -120,7 +120,7 @@ void execOTA() {
120120
// extract headers here
121121
// Start with content length
122122
if (line.startsWith("Content-Length: ")) {
123-
contentLength = atoi((getHeaderValue(line, "Content-Length: ")).c_str());
123+
contentLength = atol((getHeaderValue(line, "Content-Length: ")).c_str());
124124
Serial.println("Got " + String(contentLength) + " bytes from server");
125125
}
126126

0 commit comments

Comments
 (0)
0