#include <RbootHttpUpdater.h>
|
| void | applyUpdate () |
| |
| void | updateFailed () |
| |
| virtual int | itemComplete (HttpConnection &client, bool success) |
| |
| virtual int | updateComplete (HttpConnection &client, bool success) |
| |
| bool | sendRequest (const Url &url, RequestCompletedDelegate requestComplete) |
| |
| bool | sendRequest (const HttpMethod method, const Url &url, const HttpHeaders &headers, RequestCompletedDelegate requestComplete) |
| |
| bool | sendRequest (const HttpMethod method, const Url &url, const HttpHeaders &headers, const String &body, RequestCompletedDelegate requestComplete) |
| |
| bool | downloadString (const Url &url, RequestCompletedDelegate requestComplete) |
| |
| bool | downloadFile (const Url &url, RequestCompletedDelegate requestComplete=nullptr) |
| |
| bool | downloadFile (const Url &url, const String &saveFileName, RequestCompletedDelegate requestComplete=nullptr) |
| | Queue request to download a file. More...
|
| |
| bool | send (HttpRequest *request) |
| |
| HttpRequest * | request (const String &url) |
| |
| HttpRequest * | createRequest (const Url &url) |
| | Helper function to create a new request on a URL. More...
|
| |
| String | getCacheKey (const Url &url) |
| |
◆ HttpConnectionPool
◆ ~RbootHttpUpdater()
| virtual RbootHttpUpdater::~RbootHttpUpdater |
( |
| ) |
|
|
inlinevirtual |
◆ addItem() [1/2]
| bool RbootHttpUpdater::addItem |
( |
int |
offset, |
|
|
const String & |
firmwareFileUrl, |
|
|
size_t |
maxSize = 0 |
|
) |
| |
◆ addItem() [2/2]
◆ applyUpdate()
| void RbootHttpUpdater::applyUpdate |
( |
| ) |
|
|
protected |
◆ createRequest()
Helper function to create a new request on a URL.
- Parameters
-
- Return values
-
◆ downloadFile() [1/2]
◆ downloadFile() [2/2]
Queue request to download a file.
- Parameters
-
| url | Source of file data |
| saveFileName | Path to save file to. Optional: specify nullptr to use name from url |
| requestComplete | Completion callback |
◆ downloadString()
◆ getCacheKey()
| String HttpClient::getCacheKey |
( |
const Url & |
url | ) |
|
|
inlineprotectedinherited |
◆ getItem()
◆ itemComplete()
◆ request()
◆ send()
◆ sendRequest() [1/3]
◆ sendRequest() [2/3]
◆ sendRequest() [3/3]
◆ setBaseRequest()
| void RbootHttpUpdater::setBaseRequest |
( |
HttpRequest * |
request | ) |
|
|
inline |
◆ setCallback()
◆ setDelegate()
◆ start()
| void RbootHttpUpdater::start |
( |
| ) |
|
◆ switchToRom()
| void RbootHttpUpdater::switchToRom |
( |
uint8_t |
romSlot | ) |
|
|
inline |
◆ updateComplete()
◆ updateFailed()
| void RbootHttpUpdater::updateFailed |
( |
| ) |
|
|
protected |
◆ baseRequest
◆ currentItem
| int RbootHttpUpdater::currentItem = 0 |
|
protected |
◆ httpConnectionPool
◆ items
◆ rbootWriteStatus
◆ romSlot
◆ updateDelegate
The documentation for this class was generated from the following file: