Skip to content

Commit ac9d961

Browse files
committed
fixing
1 parent 6182300 commit ac9d961

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: libraries/ESP8266httpUpdate/examples/httpUpdate/httpUpdate.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void setup() {
2727

2828
Serial.println();
2929

30-
ESPhttpUpdate.setClientTimeout(2000); // default was 8000
30+
ESPhttpUpdate.setWallTime(2000); // default was 8000
3131

3232
WiFi.mode(WIFI_STA);
3333
WiFiMulti.addAP(APSSID, APPSK);

Diff for: libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
#include <flash_hal.h>
2929

3030
ESP8266HTTPUpdate::ESP8266HTTPUpdate(void)
31-
: _httpClientTimeout(8000)
31+
: _httpWallTime(8000)
3232
{
3333
}
3434

35-
ESP8266HTTPUpdate::ESP8266HTTPUpdate(int httpClientTimeout)
36-
: _httpClientTimeout(httpClientTimeout)
35+
ESP8266HTTPUpdate::ESP8266HTTPUpdate(int httpWallTime)
36+
: _httpWallTime(httpWallTime)
3737
{
3838
}
3939

@@ -164,7 +164,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
164164

165165
// use HTTP/1.0 for update since the update handler not support any transfer Encoding
166166
http.useHTTP10(true);
167-
http.setWallTime(_httpClientWallTime);
167+
http.setWallTime(_httpWallTime);
168168
http.setFollowRedirects(_followRedirects);
169169
http.setUserAgent(F("ESP8266-http-Update"));
170170
http.addHeader(F("x-ESP8266-Chip-ID"), String(ESP.getChipId()));

Diff for: libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ESP8266HTTPUpdate
153153
String _auth;
154154
String _md5Sum;
155155
private:
156-
int _httpClientTimeout;
156+
unsigned long _httpWallTime;
157157
followRedirects_t _followRedirects = HTTPC_DISABLE_FOLLOW_REDIRECTS;
158158

159159
// Callbacks

0 commit comments

Comments
 (0)