Skip to content

Commit e0beac8

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/Update/examples/AWS_S3_OTA_Update/AWS_S3_OTA_Update.ino

+2-2
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)