ota tested

This commit is contained in:
ok-home
2023-09-24 18:26:48 +07:00
parent 5c6932902e
commit 8cd46cf21d
6 changed files with 115 additions and 52 deletions

View File

@@ -12,8 +12,9 @@
#define OTA_ERROR "otaError"
#define OTA_CANCEL "otaCancel"
#define OTA_CHUNK_SIZE 4096
#define OTA_CHUNK_SIZE 4096*2
esp_err_t start_ota_ws(void);
esp_err_t write_ota_ws(int data_read, uint8_t *ota_write_data);
esp_err_t end_ota_ws(void);
esp_err_t end_ota_ws(void);
esp_err_t abort_ota_ws(void);