Part Number: CC2530
Dear all,
As far as I know, ZCL is built on the top on AF.
Can I send and receive an AF message over a ZCL endpoint? i.e. the event_loop() function should have something like this:
while ( (MSGpkt = (afIncomingMSGPacket_t *)osal_msg_receive( zclSampleLight_TaskID )) )
{
switch ( MSGpkt->hdr.event )
{
case ZCL_INCOMING_MSG:
// Incoming ZCL Foundation command/response messages
ProcessIncomingZCLMsg( (zclIncomingMsg_t *)MSGpkt );
break;
case AF_INCOMING_MSG_CMD:
ProcessIncomingAFMsg( (afIncomingMSGPacket_t *)MSGpkt );
break;
}
…
Also, I found the structure of zclIncomingMsg_t and afIncomingMSGPacket_t are different.I am not sure if this causes any issue.
Thank you very much.
Best regards,
Barry