TuyaOS
函数
tal_ota.h 文件参考

This is tal_ota file 更多...

#include "tuya_cloud_types.h"
tal_ota.h 的引用(Include)关系图:

浏览源代码.

函数

OPERATE_RET tal_ota_data_process (TUYA_OTA_DATA_T *pack, UINT32_T *remain_len)
 This API is used for ota data process 更多...
 
OPERATE_RET tal_ota_end_notify (BOOL_T reset)
 This API is used for ota end notify 更多...
 
OPERATE_RET tal_ota_get_ability (UINT32_T *image_size, TUYA_OTA_TYPE_E *type)
 This API is used for get chip ota ability diff package upgrade use TUYA_OTA_DIFF 更多...
 
OPERATE_RET tal_ota_get_old_firmware_info (TUYA_OTA_FIRMWARE_INFO_T **info)
 This API is used for old firmware info, and only used in resumes transmission at break-points 更多...
 
OPERATE_RET tal_ota_start_notify (UINT32_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path)
 This API is used for ota start notify 更多...
 

详细描述

This is tal_ota file

版本
1.0
日期
2021-08-24

函数说明

◆ tal_ota_data_process()

OPERATE_RET tal_ota_data_process ( TUYA_OTA_DATA_T *  pack,
UINT32_T *  remain_len 
)

This API is used for ota data process

参数
[in]*packpoint to ota pack
[in]remain_lenota pack remain len
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_ota_end_notify()

OPERATE_RET tal_ota_end_notify ( BOOL_T  reset)

This API is used for ota end notify

参数
[in]resetota reset
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_ota_get_ability()

OPERATE_RET tal_ota_get_ability ( UINT32_T *  image_size,
TUYA_OTA_TYPE_E *  type 
)

This API is used for get chip ota ability diff package upgrade use TUYA_OTA_DIFF

参数
[in]*image_sizemax image size
[in]*typefull package and compress package upgrade use TUYA_OTA_FULL
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_ota_get_old_firmware_info()

OPERATE_RET tal_ota_get_old_firmware_info ( TUYA_OTA_FIRMWARE_INFO_T **  info)

This API is used for old firmware info, and only used in resumes transmission at break-points

参数
[in]**info**info
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_ota_start_notify()

OPERATE_RET tal_ota_start_notify ( UINT32_T  image_size,
TUYA_OTA_TYPE_E  type,
TUYA_OTA_PATH_E  path 
)

This API is used for ota start notify

参数
[in]image_sizeimage size
[in]typeota type
[in]pathpath
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h