|
ESP8266
|
Public Member Functions | |
| ESP8266HTTPUpdate (void) | |
| ~ESP8266HTTPUpdate (void) | |
| t_httpUpdate_return | update (const char *url, const char *current_version="", const char *httpsFingerprint="", bool reboot=true) |
| t_httpUpdate_return | update (const char *host, uint16_t port, const char *url="/", const char *current_version="", bool https=false, const char *httpsFingerprint="", bool reboot=true) |
| t_httpUpdate_return | update (String host, uint16_t port, String url="/", String current_version="", bool https=false, String httpsFingerprint="", bool reboot=true) |
| t_httpUpdate_return | updateSpiffs (const char *url, const char *current_version="", const char *httpsFingerprint="", bool reboot=false) |
| int | getLastError (void) |
| String | getLastErrorString (void) |
Protected Member Functions | |
| t_httpUpdate_return | handleUpdate (HTTPClient *http, const char *current_version, bool reboot=true, bool spiffs=false) |
| bool | runUpdate (Stream &in, uint32_t size, String md5, int command=U_FLASH) |
Protected Attributes | |
| int | lastError |
| ESP8266HTTPUpdate::ESP8266HTTPUpdate | ( | void | ) |
| ESP8266HTTPUpdate::~ESP8266HTTPUpdate | ( | void | ) |
| int ESP8266HTTPUpdate::getLastError | ( | void | ) |
return error code as int
| String ESP8266HTTPUpdate::getLastErrorString | ( | void | ) |
return error code as String
|
protected |
| http | HTTPClient * |
| current_version | const char * |
< OK (Start Update)
< Not Modified (No updates)
|
protected |
| t_httpUpdate_return ESP8266HTTPUpdate::update | ( | const char * | url, |
| const char * | current_version = "", |
||
| const char * | httpsFingerprint = "", |
||
| bool | reboot = true |
||
| ) |
| url | const char * |
| current_version | const char * |
| httpsFingerprint | const char * |
| t_httpUpdate_return ESP8266HTTPUpdate::update | ( | const char * | host, |
| uint16_t | port, | ||
| const char * | url = "/", |
||
| const char * | current_version = "", |
||
| bool | https = false, |
||
| const char * | httpsFingerprint = "", |
||
| bool | reboot = true |
||
| ) |
| host | const char * |
| port | uint16_t |
| url | const char * |
| current_version | const char * |
| httpsFingerprint | const char * |
| t_httpUpdate_return ESP8266HTTPUpdate::update | ( | String | host, |
| uint16_t | port, | ||
| String | url = "/", |
||
| String | current_version = "", |
||
| bool | https = false, |
||
| String | httpsFingerprint = "", |
||
| bool | reboot = true |
||
| ) |
| t_httpUpdate_return ESP8266HTTPUpdate::updateSpiffs | ( | const char * | url, |
| const char * | current_version = "", |
||
| const char * | httpsFingerprint = "", |
||
| bool | reboot = false |
||
| ) |
| url | const char * |
| current_version | const char * |
| httpsFingerprint | const char * |
|
protected |
1.8.10