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.
The following steps show you how to handle end node announcement in Z-Stack SampleLight.
1. Add "ZDO_RegisterForZDOMsg(task_id, Device_annce);" in zclSampleLight_Init().
2. Add the following codes to process Device_annce event in zclSampleLight_ProcessZDOMsgs and you would get end node announcement information in devAnnce structure.
ZDO_DeviceAnnce_t devAnnce;
if ( pMsg->clusterID == Device_annce )
ZDO_ParseDeviceAnnce( pMsg, &devAnnce );
When a device joins, it receives its randomly generated address from its parent. The new network node then generates a “Device Announce” (which contains its new short address and its extended address) to the rest of the network.