11#ifndef __TKL_ZCL_OTA_H__
12#define __TKL_ZCL_OTA_H__
18#include "tuya_cloud_types.h"
23#define ZG_OTA_DOWNLOAD_AND_VERIFY_SUCCESS 0
24#define ZG_OTA_DOWNLOAD_TIME_OUT 1
25#define ZG_OTA_VERIFY_FAILED 2
26#define ZG_OTA_SERVER_ABORTED 3
27#define ZG_OTA_CLIENT_ABORTED 4
28#define ZG_OTA_ERASE_FAILED 5
31typedef VOID_T (*TKL_ZG_OTA_START_CB)(UINT32_T image_size, VOID_T* argv);
33typedef VOID_T (*TKL_ZG_OTA_END_CB)(UINT8_T result);
40 TKL_ZG_OTA_START_CB start_notify;
42 TKL_ZG_OTA_END_CB end_notify;
75VOID_T
tkl_ota_init(UINT_T app_ver, UINT16_T manuf_id, UINT16_T image_type);
Definition: tkl_zcl_ota.h:38
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
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
VOID_T tkl_ota_auto_query_enable(BOOL_T enable)
ota auto query enable this API will insert to native SDK