Updater: Better flow for performing updates; added MD5 validation.

This commit is contained in:
2019-11-28 06:48:16 +01:00
parent 07b1ea3a5c
commit b805d1b183
4 changed files with 58 additions and 69 deletions

View File

@ -1,8 +1,10 @@
#pragma once
#include "http_client_wrapper.h"
class Updater {
public:
static void run();
static bool do_update(int cmd, String url);
static void update_spiffs();
static void run(uint16_t spiffs_version = 0);
static bool do_update(int cmd, String url, String expected_md5);
static bool read_line(String* dst, HTTPClientWrapper* http, String expected_key);
};