TuyaOS
tal_ota.h
浏览该文件的文档.
1
10#ifndef __TAL_OTA_H__
11#define __TAL_OTA_H__
12
13#include "tuya_cloud_types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20
31OPERATE_RET tal_ota_get_ability(UINT_T *image_size, TUYA_OTA_TYPE_E *type);
32
43OPERATE_RET tal_ota_start_notify(UINT_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path);
44
55OPERATE_RET tal_ota_data_process(TUYA_OTA_DATA_T *pack, UINT_T* remain_len);
56
66OPERATE_RET tal_ota_end_notify(BOOL_T reset);
67
68
69
80OPERATE_RET tal_ota_get_old_firmware_info(TUYA_OTA_FIRMWARE_INFO_T **info);
81
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
OPERATE_RET tal_ota_start_notify(UINT_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path)
ota start notify
OPERATE_RET tal_ota_get_old_firmware_info(TUYA_OTA_FIRMWARE_INFO_T **info)
get old firmware info
OPERATE_RET tal_ota_get_ability(UINT_T *image_size, TUYA_OTA_TYPE_E *type)
get ota ability
OPERATE_RET tal_ota_data_process(TUYA_OTA_DATA_T *pack, UINT_T *remain_len)
ota data process
OPERATE_RET tal_ota_end_notify(BOOL_T reset)
ota end notify