I am new to NXP processors
I have installed Beyond Studio
I have installed the HA SDK
I have imported the HA Demo project JN-AN-1189
I have built the Coordinator and uploaded the binary to my processor.
I have an occupancy sensor that joins fine and when movement is detected I get from the serial port
Which is all fine and dandy. That's the HA profile and the occupancy sensor profile.
What I can't fathom is how to see the rest of the frame data. Either in raw form, or by getting the API to interpret it for me
I see that this code
/* Process incoming cluster messages ... */
DBG_vPrintf(TRACE_APP, " Profile :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ProfileId);
DBG_vPrintf(TRACE_APP, " Cluster :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ClusterId);
DBG_vPrintf(TRACE_APP, " EndPoint:%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u8DstEndpoint);
is giving me the messages above, but are there other properties of sStackEvent.uEvent.sApsDataIndEvent that I can show?
Hope someone can point me in the right direction as I have been struggling with this for some time.
Thanks
Hi Tony,
Please look at the structure ZPS_tsAfDataIndEvent in the ZigBee PRO Stack User Guide
https://www.nxp.com/docs/en/user-guide/JN-UG-3048.pdf?fsrch=1&sr=3&pageNum=1
7.2.2.3 ZPS_tsAfDataIndEvent
Regards,
Mario