提交 e0beac88 编写于 作者: J Jean Marc BRUNO 提交者: Me No Dev

File with more than 32,767 characters (#2566)

上级 a87b2ec6
......@@ -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
......@@ -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");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册