TuyaOS
函数
tkl_ota.h 文件参考

Common process - ota 更多...

#include "tuya_cloud_types.h"
tkl_ota.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

OPERATE_RET tkl_ota_data_process (TUYA_OTA_DATA_T *pack, UINT_T *remain_len)
 ota data process 更多...
 
OPERATE_RET tkl_ota_end_notify (BOOL_T reset)
 ota end notify 更多...
 
OPERATE_RET tkl_ota_get_ability (UINT_T *image_size, TUYA_OTA_TYPE_E *type)
 get ota ability 更多...
 
OPERATE_RET tkl_ota_get_old_firmware_info (TUYA_OTA_FIRMWARE_INFO_T **info)
 get old firmware info 更多...
 
OPERATE_RET tkl_ota_start_notify (UINT_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path)
 ota start notify 更多...
 

详细描述

Common process - ota

版本
1.0.0
日期
2021-04-21

函数说明

◆ tkl_ota_data_process()

OPERATE_RET tkl_ota_data_process ( TUYA_OTA_DATA_T pack,
UINT_T *  remain_len 
)

ota data process

参数
[in]packpoint to ota pack
[in]remain_lenota pack remain len
注解
This API is used for ota data process
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_ota_end_notify()

OPERATE_RET tkl_ota_end_notify ( BOOL_T  reset)

ota end notify

参数
[in]resetota reset
注解
This API is used for ota end notify
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_ota_get_ability()

OPERATE_RET tkl_ota_get_ability ( UINT_T *  image_size,
TUYA_OTA_TYPE_E *  type 
)

get ota ability

参数
[out]image_sizemax image size
[out]typeTUYA_OTA_TYPE_E, full package or compress package use TUYA_OTA_FULL, difference ota use TUYA_OTA_DIFF
注解
This API is used for get chip ota ability
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_ota_get_old_firmware_info()

OPERATE_RET tkl_ota_get_old_firmware_info ( TUYA_OTA_FIRMWARE_INFO_T **  info)

get old firmware info

参数
[out]image_sizemax image size
[out]typeota type
注解
This API is used for old firmware info, and only used in resumes transmission at break-points
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_ota_start_notify()

OPERATE_RET tkl_ota_start_notify ( UINT_T  image_size,
TUYA_OTA_TYPE_E  type,
TUYA_OTA_PATH_E  path 
)

ota start notify

参数
[in]image_sizeimage size
[in]typeota type
[in]pathota path
注解
This API is used for ota start notify
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h