This is tal_ota file
更多...
#include "tuya_cloud_types.h"
浏览源代码.
|
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
- 版权所有
- Copyright 2021-2023 Tuya Inc. All Rights Reserved.
◆ 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] | *pack | point to ota pack |
[in] | remain_len | ota 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
- 参数
-
- 返回
- 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_size | max image size |
[in] | *type | full 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
- 参数
-
- 返回
- 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_size | image size |
[in] | type | ota type |
[in] | path | path |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h