Common process - ota
更多...
#include "tuya_cloud_types.h"
浏览源代码.
Common process - ota
- 版本
- 1.0.0
- 日期
- 2021-04-21
- 版权所有
- Copyright (C) 2021-2022 Tuya Inc. All Rights Reserved.
◆ tkl_ota_data_process()
| OPERATE_RET tkl_ota_data_process |
( |
TUYA_OTA_DATA_T * |
pack, |
|
|
UINT_T * |
remain_len |
|
) |
| |
ota data process
- 参数
-
| [in] | pack | point to ota pack |
| [in] | remain_len | ota 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
- 参数
-
- 注解
- 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_size | max image size |
| [out] | type | TUYA_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()
get old firmware info
- 参数
-
| [out] | image_size | max image size |
| [out] | type | ota 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_size | image size |
| [in] | type | ota type |
| [in] | path | ota path |
- 注解
- This API is used for ota start notify
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h