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.

Confirmation for indication

Hi All,

 

I use indications to know whether a characteristic value has been changed recently. The confirmation is sent via calling ATT_HandleValueCfm(). I have three questions regarding to this:

- The confirmation occurs as a GATT event on the other side. Do I have to do anything to "accept" the confirmation and let the chance to send new indications, or is it obtained automatically? (I guess the latter, but not completely sure.) 

- Is there any way to get the exact characteristic value which caused the indication to be raised? 

- The third one is only because of curiosity: can a non-confirmed indication block indications for other characteristic values as well?

 

Thanks,

Gergo

  • Hi,

     

    I have guesses for the two latter answers:

    - If gattMsgEvent_t *pMsg is the formal parameter of the GATT event processor function, then pMsg->msg.handleValueInd.handle gives the handle of the charv that has been changed recently.

    - The function ATT_HandleValueCfm() takes the connection handle as parameter, therefore I think that indications are "global" for the connections thus indications can block each other.

     

    BR,

    Gergo