Common process - ota inner
更多...
#include "tuya_cloud_types.h"
浏览源代码.
|
|
#define | ZG_OTA_CLIENT_ABORTED 4 |
| | An OTA client side exception
|
| |
|
#define | ZG_OTA_DOWNLOAD_AND_VERIFY_SUCCESS 0 |
| | OTA successful
|
| |
|
#define | ZG_OTA_DOWNLOAD_TIME_OUT 1 |
| | OTA timeout
|
| |
|
#define | ZG_OTA_ERASE_FAILED 5 |
| | Erase flash exceptions
|
| |
|
#define | ZG_OTA_SERVER_ABORTED 3 |
| | An OTA server side exception
|
| |
|
#define | ZG_OTA_VERIFY_FAILED 2 |
| | OTA image validation failed
|
| |
|
|
typedef VOID_T(* | TKL_ZG_OTA_END_CB) (UINT8_T result) |
| |
|
typedef VOID_T(* | TKL_ZG_OTA_START_CB) (UINT32_T image_size, VOID_T *argv) |
| |
Common process - ota inner
- 版本
- 1.0.0
- 日期
- 2021-04-21
- 版权所有
- Copyright 2021-2022 Tuya Inc. All Rights Reserved.
◆ tkl_ota_auto_query_enable()
| VOID_T tkl_ota_auto_query_enable |
( |
BOOL_T |
enable | ) |
|
ota auto query enable this API will insert to native SDK
- 参数
-
| [in] | enable | switch on/off OTA-query |
- 注解
- This API is used for ota policy
- 返回
- none
◆ tkl_ota_init()
| VOID_T tkl_ota_init |
( |
UINT_T |
app_ver, |
|
|
UINT16_T |
manuf_id, |
|
|
UINT16_T |
image_type |
|
) |
| |
ota init this API will insert to native SDK
- 参数
-
| [in] | app_ver | app current version |
| [in] | manuf_id | manufacturer id |
| [in] | image_type | ota image type |
- 注解
- This API is used for ota init
- 返回
- none
◆ tkl_zg_diff_ota_disable()
| VOID_T tkl_zg_diff_ota_disable |
( |
BOOL_T |
is_enable | ) |
|
zigbee differential OTA disable(default enable)
- 参数
-
| [in] | is_enable | TRUE: disable; FALSE: enable |
- 返回
- none
◆ tkl_zg_register_ota_cb()
zigbee ota callback register
- 参数
-
| [in] | ota_cb | pointer to ota callback |
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h