Skip to content

Commit

Permalink
File with more than 32,767 characters (#2566)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Marc BRUNO authored and me-no-dev committed Apr 11, 2019
1 parent a87b2ec commit e0beac8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ WiFiClient client;

// Variables to validate
// response from S3
int contentLength = 0;
long contentLength = 0;
bool isValidContentType = false;

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

Expand Down

0 comments on commit e0beac8

Please sign in to comment.