使用标题的函数后如果成功后,会发出一个消息:ATT_READ_BY_GRP_TYPE_RSP
static void simpleBLEGATTDiscoveryEvent( gattMsgEvent_t *pMsg )在处理函数中
pMsg中的内容:
attReadByGrpTypeRsp_t readByGrpTypeRsp; //!< ATT Read By Group Type Response
typedef struct
{
uint8 numGrps; //!< Number of attribute handle, end group handle and value sets found
uint8 len; //!< Length of each attribute handle, end group handle and value set
uint8 dataList[ATT_MTU_SIZE-2]; //!< List of 1 or more attribute handle, end group handle and value
} attReadByGrpTypeRsp_t;
numGrps是搜索到的Services组数
len为下面dataList的长度
但是,在simplecenter中 搜索到的num为3 len为6
dataList内容为 : 01,00,0B,00,00,18
不知道这些数据怎么理解。。是不是扫描过程中出错了。因为我center跟peripheral连接的。如果是handle 值肯定不对吧。
我就是想找到所有服务的handle