Q: FAQ: Sending broadcast packets from the application (Z-Stack, ZigBee) by 656199

The GenericApp project is used as an example.
Set the destination address and endpoint to broadcast in the GenericApp_Init function like this:

GenericApp_DstAddr.addrMode = (afAddrMode_t)AddrBroadcast;
GenericApp_DstAddr.endPoint = AF_BROADCAST_ENDPOINT;
GenericApp_DstAddr.addr.shortAddr = APS_BROADCAST_SHORTADDR;


The sent packet will then be broadcasted to all devices in the PAN.