| 41 | HTTPUpdate::~HTTPUpdate(void) {} |
| 42 | |
| 43 | HTTPUpdateResult HTTPUpdate::update(NetworkClient &client, const String &url, const String ¤tVersion, 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 | |
| 51 | HTTPUpdateResult HTTPUpdate::updateFs(HTTPClient &httpClient, const String ¤tVersion, HTTPUpdateRequestCB requestCB) { |
| 52 | return handleUpdate(httpClient, currentVersion, U_FLASHFS, requestCB); |
no test coverage detected