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.

关于indicate的问题



作为从机,如果我又多个characteristic都是indicate的属性,那么我在接收confirm指示的时候,如何知道是哪一个characteristic被confirm呢?

else if(pMsg->method == ATT_HANDLE_VALUE_CFM)
{
static uint8_t a = 0;
uint8_t temp[SIMPLEPROFILE_CHAR3_LEN];
temp[0]=a++;
temp[1]=(pMsg->msg.handleValueInd.handle)&0xFF;
temp[2] = ((pMsg->msg.handleValueInd.pValue[0]));
temp[3] = ((pMsg->msg.handleValueInd.pValue[1]));
temp[4] = ((pMsg->connHandle));
temp[5] = ((pMsg->connHandle))>>8;

SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR3,
SIMPLEPROFILE_CHAR3_LEN,
(void*)&temp[0]);
}