#if ZCL_EZMODE
/*********************************************************************
* @fn zclSampleLight_ProcessZDOMsgs
*
* @brief Called when this node receives a ZDO/ZDP response.
*
* @param none
*
* @return status
*/
static void zclSampleLight_ProcessZDOMsgs( zdoIncomingMsg_t *pMsg )
{
zclEZMode_ActionData_t data;
ZDO_MatchDescRsp_t *pMatchDescRsp;
// Let EZ-Mode know of the Simple Descriptor Response
if ( pMsg->clusterID == Match_Desc_rsp )
{
pMatchDescRsp = ZDO_ParseEPListRsp( pMsg );
data.pMatchDescRsp = pMatchDescRsp;
zcl_EZModeAction( EZMODE_ACTION_MATCH_DESC_RSP, &data );
HalLedSet(HAL_LED_2, HAL_LED_MODE_TOGGLE);
osal_mem_free( pMatchDescRsp );
}
}
YiKai Chen:
你指的 获取终端节点信息 是指什麼信息?
user4796768:
回复 YiKai Chen:
主要是想获取终端节点的短地址和EndPoint
YiKai Chen:
回复 user4796768:
參考一下
sunmaysky.blogspot.com/…/how-to-handle-end-node-announcement.html
user4796768:
回复 YiKai Chen:
竟然打不开,晕了
Alvin Chen:
回复 user4796768:
ZDO_ActiveEndpointRsp_t
ZDO_ActiveEndpointRsp_t *pActiveEndpointRsp;
if ( pMsg->clusterID == Active_EP_rsp )pActiveEndpointRsp = ZDO_ParseEPListRsp( pMsg );可以通过
* ZDP_ActiveEPReq – Request a device's endpoint list
*
* @MT SPI_CMD_ZDO_ACTIVE_EPINT_REQ
* (UInt16 DstAddr,
* UInt16 NWKAddrOfInterest,
* byte SecuritySuite)
*
*/
#define ZDP_ActiveEPReq( dstAddr, NWKAddrOfInterest, SecurityEnable ) \
ZDP_NWKAddrOfInterestReq( dstAddr, \
NWKAddrOfInterest, Active_EP_req, SecurityEnable )