Part Number: CC2538
hi all,
how to send broadcast message to PAN network .
the TI example snippet code , i can't see the boardcast . have any one give Suggest?
//uint8 zclSampleFireDetector_IAS_CIE_Address[8] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
//#define AF_BROADCAST_ENDPOINT 0xFF
//#define SAMPLEFIREDETECTOR_ENDPOINT 17
// zone enrollment request to CIE, only perform after writing cie address attribute value
afAddrType_t zclCIE_Addr;
zclCIE_Addr.addrMode = (afAddrMode_t)(Addr64Bit);
osal_memcpy(zclCIE_Addr.addr.extAddr, zclSampleFireDetector_IAS_CIE_Address, Z_EXTADDR_LEN);
zclCIE_Addr.endPoint = AF_BROADCAST_ENDPOINT;
zclSS_IAS_Send_ZoneStatusEnrollRequestCmd( SAMPLEFIREDETECTOR_ENDPOINT,
&zclCIE_Addr,
zclSampleFireDetector_ZoneType,
22, 0, 1);
ZStatus_t zclSS_IAS_Send_ZoneStatusEnrollRequestCmd( uint8 srcEP, afAddrType_t *dstAddr,
uint16 zoneType, uint16 manufacturerCode,
uint8 disableDefaultRsp, uint8 seqNum )
{
uint8 buf[PAYLOAD_LEN_ZONE_ENROLL_REQUEST];
buf[0] = LO_UINT16( zoneType );
buf[1] = HI_UINT16( zoneType );
buf[2] = LO_UINT16( manufacturerCode );
buf[3] = HI_UINT16( manufacturerCode );
return zcl_SendCommand( srcEP, dstAddr, ZCL_CLUSTER_ID_SS_IAS_ZONE,
COMMAND_SS_IAS_ZONE_STATUS_ENROLL_REQUEST, TRUE,
ZCL_FRAME_SERVER_CLIENT_DIR, disableDefaultRsp, 0,
seqNum, PAYLOAD_LEN_ZONE_ENROLL_REQUEST, buf );
}
z-stack-example-apps(IAS Zone)
git.ti.com/.../z-stack-example-apps
Thank you for considering my request