multi_role_processGATTDiscEvent(){
//....
// If we're discovering characteristics
else if (discInfo[connIndex].discState == BLE_DISC_STATE_CHAR)
{
// Characteristic found
MyUart_Printf(true, INFOR_FORMAT,"readByTypeRsp:%x %d %d",pMsg->method,
pMsg->msg.readByTypeRsp.numPairs, connIndex);
if ((pMsg->method == ATT_READ_BY_TYPE_RSP) &&
(pMsg->msg.readByTypeRsp.numPairs > 0))
{
// Store handle
discInfo[connIndex].charHdl = BUILD_UINT16(pMsg->msg.readByTypeRsp.pDataList[3],
pMsg->msg.readByTypeRsp.pDataList[4]);
Display_print0(dispHandle, MR_ROW_STATUS1, 0, "Simple Svc Found");
MyUart_Printf(true, INFOR_FORMAT,"Simple Svc Found,%d %x", connIndex, discInfo[connIndex].charHdl);
}
}
}
以上代码中,在获取handle的时候为什么是从pMsg->msg.readByTypeRsp.pDataList数组中的3,4中取值,在这个地方这个数组的内容定义是怎么样的
