想实现协调器读取终端的属性值。打算使用下面这函数。
zcl_SendRead( uint8_t srcEP, afAddrType_t *dstAddr, uint16_t realClusterID, zclReadCmd_t *readCmd, uint8_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 ?