This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1352P: zcl_SendRead 函数里面的 zclReadCmd_t 参数如何填写

Part Number: CC1352P


想实现协调器读取终端的属性值。打算使用下面这函数。

zcl_SendRead( uint8_t srcEP, afAddrType_t *dstAddr, uint16_t realClusterID, zclReadCmd_t *readCmduint8_t direction, uint8_t disableDefaultRsp, uint8_t seqNum );

typedef struct
{
uint8_t numAttr; //!< number of attributes in the list
uint16_t attrID[]; //!< supported attributes list - this structure should
                           //!< be allocated with the appropriate number of attributes.
} zclReadCmd_t;

1.里面的numAttr是指终端的属性数量还是协调器的属性数量

2. attrID[] 这个要读取第一个属性值的话,是不是写成attrID[0] = ATTRID_BASIC_MANUFACTURER_NAME ?