Hi, I am trying to use GATT_DiscAllChars to discover all characteristics for a given service UUID (for later reading and writing of these characteristics).
I can successfully receive responses and store the handles:
if ((pMsg->method == ATT_READ_BY_TYPE_RSP) && (pMsg->msg.readByTypeRsp.numPairs > 0)) { Log_info2("Found pairs %d, len %d", pMsg->msg.readByTypeRsp.numPairs, pMsg->msg.readByTypeRsp.numPairs ); charHdl = BUILD_UINT16(pMsg->msg.readByTypeRsp.pDataList[0], pMsg->msg.readByTypeRsp.pDataList[1]); Log_info1("handle %d",charHdl); }
but how to get the UUIDs? I believe msg.readByTypeRsp.pDataList to be a list of handle,UUID pairs but I can't find any further documentation.