TuyaOS
结构体 | 宏定义 | 类型定义 | 函数
tkl_zcl_ota.h 文件参考

Common process - ota inner 更多...

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

浏览源代码.

结构体

struct  TKL_ZG_OTA_CB
 

宏定义

#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)
 

函数

VOID_T tkl_zg_diff_ota_disable (BOOL_T is_enable)
 zigbee differential OTA disable(default enable) 更多...
 
OPERATE_RET tkl_zg_register_ota_cb (TKL_ZG_OTA_CB *ota_cb)
 zigbee ota callback register 更多...
 

详细描述

Common process - ota inner

版本
1.0.0
日期
2021-04-21

函数说明

◆ tkl_zg_diff_ota_disable()

VOID_T tkl_zg_diff_ota_disable ( BOOL_T  is_enable)

zigbee differential OTA disable(default enable)

参数
[in]is_enableTRUE: disable; FALSE: enable
返回
none

◆ tkl_zg_register_ota_cb()

OPERATE_RET tkl_zg_register_ota_cb ( TKL_ZG_OTA_CB ota_cb)

zigbee ota callback register

参数
[in]ota_cbpointer to ota callback
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h