added ability to upload new firmware from the browser.

This commit is contained in:
Sebastien
2020-02-14 13:33:50 -05:00
parent 69120bb4de
commit 8c3a52d40c
16 changed files with 432 additions and 351 deletions

View File

@@ -12,7 +12,9 @@ extern "C" {
#endif
#define DECLARE_SET_DEFAULT(t) void config_set_default_## t (const char *key, t value);
#define DECLARE_GET_NUM(t) esp_err_t config_get_## t (const char *key, t * value);
#ifndef FREE_RESET
#define FREE_RESET(p) if(p!=NULL) { free(p); p=NULL; }
#endif
DECLARE_SET_DEFAULT(uint8_t);
DECLARE_SET_DEFAULT(uint16_t);