HTTPUpdate¶
詳細情報¶
メンバー¶
HTTPUpdate()¶
HTTPUpdate::HTTPUpdate(void)
HTTPUpdate()¶
HTTPUpdate::HTTPUpdate(int httpClientTimeout)
引数
- int
httpClientTimeout
~HTTPUpdate()¶
HTTPUpdate::~HTTPUpdate(void)
rebootOnUpdate()¶
void HTTPUpdate::rebootOnUpdate(bool reboot)
引数
- bool
reboot
setLedPin()¶
void HTTPUpdate::setLedPin(int ledPin=-1, uint8_t ledOn=HIGH)
引数
- int
ledPin
- uint8_t
ledOn
update()¶
HTTPUpdateResult HTTPUpdate::update(WiFiClient &client, const String &url, const String ¤tVersion="")
引数
- WiFiClient&
client
- constString &
url
- constString &
currentVersion
戻り値
t_httpUpdate_return
update()¶
HTTPUpdateResult HTTPUpdate::update(WiFiClient &client, const String &host, uint16_t port, const String &uri="/", const String ¤tVersion="")
引数
- WiFiClient&
client
- constString &
host
- uint16_t
port
- constString &
uri
- constString &
currentVersion
戻り値
t_httpUpdate_return
updateSpiffs()¶
HTTPUpdateResult HTTPUpdate::updateSpiffs(WiFiClient &client, const String &url, const String ¤tVersion="")
引数
- WiFiClient&
client
- constString &
url
- constString &
currentVersion
戻り値
t_httpUpdate_return
getLastError()¶
return error code as int
int HTTPUpdate::getLastError(void)
戻り値
int int error code
getLastErrorString()¶
return error code as String
String HTTPUpdate::getLastErrorString(void)
戻り値
String String error