Developing with ZBOSS for Zigbee

Functions

void zb_secur_setup_nwk_key (zb_uint8_t *key, zb_uint8_t i)
 Setup NWK key from the application level manually. More...
 
void zb_secur_nwk_key_switch_procedure (zb_uint8_t param)
 

Detailed Description

Function Documentation

◆ zb_secur_nwk_key_switch_procedure()

void zb_secur_nwk_key_switch_procedure ( zb_uint8_t  param)

Initiate procedure of NWK key switching.

Generate next NWK key if it not exists, broadcast new NWK key, after delay broadcast NWK key switch command. Can run at TC only.

Parameters
param- work buffer ID or 0 (is zero, function allocates buffer itself)

◆ zb_secur_setup_nwk_key()

void zb_secur_setup_nwk_key ( zb_uint8_t key,
zb_uint8_t  i 
)

Setup NWK key from the application level manually.

Parameters
key- key to be used
i- key number (0-3)

Call this routine at TC to change random nwk key generated from zb_ib_set_defaults to well-known key. To be used in certification tests mainly.

/* NWK key for the device */
static const zb_uint8_t g_key_nwk[16] = { 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0, 0, 0, 0, 0, 0, 0, 0};
zb_secur_setup_nwk_key
void zb_secur_setup_nwk_key(zb_uint8_t *key, zb_uint8_t i)
Setup NWK key from the application level manually.
zb_uint8_t
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:153