esp_zb_secur_network_key_switch() function
Switches the network key using the specified Key Sequence Number.
Arguments
key
A 16-byte security network key that will be switched
key_seq_num
The sequence number of the network key to switch to.
Return value
- ESP_OK: on success - ESP_ERR_INVALID_ARG: invalid argument