Webinterface: index.html and timezones.json are now saved to the Flash as GZIP compressed binary data. Compression happens on-the-fly during pio run.

This commit is contained in:
2019-12-04 06:13:07 +01:00
parent 84530f76fd
commit fad4f2c707
7 changed files with 505 additions and 42 deletions

View File

@ -3,7 +3,11 @@
void wifi_connect();
extern const uint8_t file_index_html_start[] asm("_binary_src_index_html_start");
extern bool debug_enabled;
extern bool trace_enabled;
extern Preferences prefs;
extern Preferences prefs;
extern const uint8_t file_index_html_start[] asm("_binary_src_webinterface_index_html_gz_start");
extern const size_t file_index_html_size asm("_binary_src_webinterface_index_html_gz_size");
extern const uint8_t file_timezones_json_start[] asm("_binary_src_webinterface_timezones_json_gz_start");
extern const size_t file_timezones_json_size asm("_binary_src_webinterface_timezones_json_gz_size");