Hello,
In the application I'm working, I need to send the coordinator requesting data from the router device command. Used as the basis GetProfileCmd GetProfileRsp and commands used in the sample design and app Simple ESP Metering. But the messaging is not occurring as expected.
In debug, when the coordinator sends the command created, is entering the stretch of the zcl.c code:
ZStatus_t zcl_SendCommand (uint8 srcEP, afAddrType_t * destAddr,
ClusterID uint16, uint8 cmd, specific uint8, uint8 direction,
disableDefaultRsp uint8, uint16 Manucode, uint8 seqNum,
cmdFormatLen uint16, uint8 * cmdFormat)
{
* endPointDesc_t epDesc;
zclFrameHdr_t hdr;
uint8 * msgBuf;
uint16 msglen;
uint8 * pBuf;
uint8 options;
ZStatus_t status;
epDesc = afFindEndPointDesc (srcEP);
if (NULL == epDesc)
{
return (ZInvalidParameter); // EMBEDDED RETURN
}
My question is:
1) Because this error is occurring if I just include the command as another in the set of commands zcl_se?
2) I need to create a zcl only for this new command? I would like to include it as one more command in ZCL_SE.
I even studied the example zcl manu spec, but with these doubts remain regarding the inclusion of new commands in zcl_se.
Thanks to anyone who can help me with these questions,