mirror of
https://github.com/ok-home/ota_ws_update.git
synced 2025-11-13 22:03:27 +03:00
reorder to ota_ws_update
This commit is contained in:
23
private_include/ota_ws_update_private.h
Normal file
23
private_include/ota_ws_update_private.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <esp_log.h>
|
||||
#include <esp_system.h>
|
||||
#include "esp_http_server.h"
|
||||
|
||||
#define OTA_RESTART_ESP "otaRestartEsp"
|
||||
#define OTA_SIZE_START "otaSize"
|
||||
#define OTA_SET_CHUNK_SIZE "otaSetChunkSize"
|
||||
#define OTA_GET_CHUNK "otaGetChunk"
|
||||
#define OTA_END "otaEnd"
|
||||
#define OTA_ERROR "otaError"
|
||||
#define OTA_CANCEL "otaCancel"
|
||||
#define OTA_CHECK_ROLLBACK "otaCheckRollback"
|
||||
#define OTA_PROCESS_ROLLBACK "otaProcessRollback"
|
||||
|
||||
|
||||
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 abort_ota_ws(void);
|
||||
bool check_ota_ws_rollback_enable(void);
|
||||
esp_err_t rollback_ota_ws(bool rollback);
|
||||
Reference in New Issue
Block a user