1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-16 00:43:00 +03:00

add http client configurable timeout usefull when download is slow on server side (#4705)

* add http client configurable timeout usefull when download is slow from server side

* member init outside constructor body.

* removed this.
This commit is contained in:
Marian Craciunescu
2018-05-04 17:18:15 +03:00
committed by Develo
parent 76a14b1f63
commit bd87970aae
3 changed files with 11 additions and 2 deletions

View File

@ -64,6 +64,7 @@ class ESP8266HTTPUpdate
{
public:
ESP8266HTTPUpdate(void);
ESP8266HTTPUpdate(int httpClientTimeout);
~ESP8266HTTPUpdate(void);
void rebootOnUpdate(bool reboot)
@ -103,6 +104,8 @@ protected:
int _lastError;
bool _rebootOnUpdate = true;
private:
int _httpClientTimeout;
};
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_HTTPUPDATE)