TuyaOS
tkl_network_recovery.h
浏览该文件的文档.
1
11#ifndef __TKL_NETWORK_RECOVERY_H__
12#define __TKL_NETWORK_RECOVERY_H__
13
14
15#ifdef __cplusplus
16 extern "C" {
17#endif
18
19#include "tuya_cloud_types.h"
20
21typedef enum {
22 NWK_RECOVERY_SUCESS = 0,
23 NWK_RECOVERY_FAILED
24} TKL_RECOVERY_STATUS_E;
25
26typedef struct {
27 UINT16_T node_id;
28 UINT8_T channel;
29 INT8_T tx_power;
32 UINT16_T panid;
33 UINT8_T *ext_panid;
34 UINT8_T *tc_mac;
35 UINT8_T *nwk_key;
37
45
54
63
71
79
87
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif
Definition: tkl_network_recovery.h:26
UINT8_T * nwk_key
network key
Definition: tkl_network_recovery.h:35
UINT8_T * ext_panid
target network extend panid
Definition: tkl_network_recovery.h:33
UINT16_T panid
target network panid
Definition: tkl_network_recovery.h:32
UINT8_T channel
target network channel(11~26)
Definition: tkl_network_recovery.h:28
UINT16_T node_id
node short addr,if 0xffff random generation, otherwise user specified
Definition: tkl_network_recovery.h:27
UINT8_T * tc_mac
gateway or trust center mac address
Definition: tkl_network_recovery.h:34
ZG_NWK_TYPE_E nwk_type
target network type
Definition: tkl_network_recovery.h:31
INT8_T tx_power
node tx power value
Definition: tkl_network_recovery.h:29
ZG_NODE_TYPE_E node_type
node type
Definition: tkl_network_recovery.h:30
VOID_T tkl_zg_nwk_recovery_info_clear(VOID_T)
zigbee network recovery information clear
BOOL_T tkl_zg_nwk_out_of_band_join(TKL_OUTOF_BAND_JOIN_T *info)
zigbee out of band network join
BOOL_T tkl_zg_nwk_recovery_is_available(VOID_T)
zigbee network recovery is available
VOID_T tkl_zg_nwk_recovery_disable(BOOL_T en)
zigbee network recovery disable
VOID_T tkl_zg_nwk_recovery_init(VOID_T)
zigbee network recovery init
VOID_T tkl_zg_nwk_recovery_start(VOID_T)
zigbee network recovery start it must be used in the no network state
VOID_T tkl_zg_nwk_recovery_info_save(VOID_T)
zigbee network recovery information save
ZG_NODE_TYPE_E
Definition: tuya_zigbee_stack.h:67
ZG_NWK_TYPE_E
Definition: tuya_zigbee_stack.h:77