与APP对接OTA固件升级

This commit is contained in:
OPTOC
2025-09-22 14:32:55 +08:00
parent f15ba5a274
commit 601659e9f1
4 changed files with 69 additions and 12 deletions

View File

@@ -14,8 +14,15 @@ typedef struct
const esp_partition_t *update;
esp_ota_handle_t ota_handle;
int total_size;
uint16_t ota_data_cnt;
uint8_t ota_buff[20480 + 512];
}ota_u_t;
typedef struct
{
uint32_t ota_file_size;
}ota_parm_t;
/**
* @brief 获取当前ota信息
*/