8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87b2ec commit e0beac8Copy full SHA for e0beac8
libraries/Update/examples/AWS_S3_OTA_Update/AWS_S3_OTA_Update.ino
@@ -26,7 +26,7 @@ WiFiClient client;
26
27
// Variables to validate
28
// response from S3
29
-int contentLength = 0;
+long contentLength = 0;
30
bool isValidContentType = false;
31
32
// Your SSID and PSWD that the chip needs
@@ -120,7 +120,7 @@ void execOTA() {
120
// extract headers here
121
// Start with content length
122
if (line.startsWith("Content-Length: ")) {
123
- contentLength = atoi((getHeaderValue(line, "Content-Length: ")).c_str());
+ contentLength = atol((getHeaderValue(line, "Content-Length: ")).c_str());
124
Serial.println("Got " + String(contentLength) + " bytes from server");
125
}
126
0 commit comments