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

@@ -9,6 +9,7 @@
#include "esp_attr.h"
#include "esp_image_format.h"
#include "esp_ota_ops.h"
#include "sys/param.h"
#if RECOVERY_APPLICATION
#define CODE_RAM_LOCATION
@@ -35,7 +36,7 @@
// tasks
#define OTA_TASK_PRIOTITY 6
esp_err_t start_ota(const char * bin_url);
esp_err_t start_ota(const char * bin_url, char * bin_buffer, uint32_t length);
const char * ota_get_status();
uint8_t ota_get_pct_complete();