zigbee 1.2.2a关于在接收到消息附带着节点的短地址如何把其中的短地址解析出来,求大神解答
l啊啦啦啦啦啦啦啦啦啦
论坛有类似问题,请看这边解答: https://www.deyisupport.com/question_answer/wireless_connectivity/zigbee/f/104/t/88181.aspx
typedef struct
{
union
{
uint16 shortAddr;
ZLongAddr_t extAddr;
} addr;
afAddrMode_t addrMode;
uint8 endPoint;
uint16 panId; // used for the INTER_PAN feature
} afAddrType_t;
typedef struct
{
osal_event_hdr_t hdr; /* OSAL Message header */
uint16 groupId; /* Message's group ID - 0 if not set */
uint16 clusterId; /* Message's cluster ID */
afAddrType_t srcAddr; /* Source Address, if endpoint is STUBAPS_INTER_PAN_EP,
it's an InterPAN message */
uint16 macDestAddr; /* MAC header destination short address */
uint8 endPoint; /* destination endpoint */
uint8 wasBroadcast; /* TRUE if network destination was a broadcast address */
uint8 LinkQuality; /* The link quality of the received data frame */
uint8 correlation; /* The raw correlation value of the received data frame */
int8 rssi; /* The received RF power in units dBm */
uint8 SecurityUse; /* deprecated */
uint32 timestamp; /* receipt timestamp from MAC */
uint8 nwkSeqNum; /* network header frame sequence number */
afMSGCommandFormat_t cmd; /* Application Data */
uint16 macSrcAddr; /* MAC header source short address */
uint8 radius;
} afIncomingMSGPacket_t;
大神,我如何把其中shortAddr给取出来,新入坑很多问题不是特别清楚。。