This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing Network Key

I´ve read on ZStack Developers guide the following information:

"The ZDO Security Manager (ZDSecMgr.c) API provides this functionality via  ZDSecMgrUpdateNwkKey() and  ZDSecMgrSwitchNwkKey().  ZDSecMgrUpdateNwkKey()
allows the Trust Center to broadcast a new Network key  to all devices on the network. At this point the new Network key is stored as an alternate key in all devices. Once the Trust Center calls  ZDSecMgrSwitchNwkKey(), a network wide broadcast will trigger all devices to use their alternate key."

Since my coordinator changed the nwk key I´ve called ZDSecMgrUpdateNwkKey( newKey, 1, MAC_SHORT_ADDR_BROADCAST ) and ZDSecMgrSwitchNwkKey( 1, MAC_SHORT_ADDR_BROADCAST ) functions.

The coordinator key has changed but my end device hasn´t change the nwk key.

Is it necessary so set any flag/define?

What I must use on keySeqNum?

How can I change key on all devices?

Regards.

Marconi.