2019-11-28 05:42:30 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-11-28 05:48:16 +00:00
|
|
|
#include "http_client_wrapper.h"
|
|
|
|
|
2019-11-28 05:42:30 +00:00
|
|
|
class Updater {
|
|
|
|
public:
|
2019-11-28 05:48:16 +00:00
|
|
|
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);
|
2019-11-28 05:42:30 +00:00
|
|
|
};
|