Moved index.html from SPIFFS to program memory. Removed dependencies to SPIFFS. Also, we can use a different partition scheme with much more program space instead of reserving some of it for SPIFFS.

This commit is contained in:
2019-11-29 06:10:17 +01:00
parent dd9e1538c8
commit 8e15f87cd3
11 changed files with 23 additions and 61 deletions

View File

@ -1,4 +1,5 @@
#pragma once
extern uint16_t spiffs_version;
void wifi_connect();
extern const uint8_t file_index_html_start[] asm("_binary_src_index_html_start");

View File

@ -4,7 +4,7 @@
class Updater {
public:
static void run(uint16_t spiffs_version = 0);
static void run();
static bool do_update(int cmd, String url, String expected_md5);
static bool read_line(String* dst, HTTPClientWrapper* http, String expected_key);
};