MCPcopy Create free account
hub / github.com/Heltec-Aaron-Lee/WiFi_Kit_series / update

Method update

libraries/HTTPUpdate/src/HTTPUpdate.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41HTTPUpdate::~HTTPUpdate(void) {}
42
43HTTPUpdateResult HTTPUpdate::update(NetworkClient &client, const String &url, const String &currentVersion, HTTPUpdateRequestCB requestCB) {
44 HTTPClient http;
45 if (!http.begin(client, url)) {
46 return HTTP_UPDATE_FAILED;
47 }
48 return handleUpdate(http, currentVersion, U_FLASH, requestCB);
49}
50
51HTTPUpdateResult HTTPUpdate::updateFs(HTTPClient &httpClient, const String &currentVersion, HTTPUpdateRequestCB requestCB) {
52 return handleUpdate(httpClient, currentVersion, U_FLASHFS, requestCB);

Callers 2

sha256sumFunction · 0.80
from_binaryMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected