This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Automatically response to indication(s120)

Hello,there is a way that can automatically confirm receipt of the packet from the server,without to call evrey time sd_ble_gattc_hv_confirm() after each received indication from server?

Parents Reply
  • Is there a reason why you do not use simple notifications then? Indications are meant to be confirmed, and are inherently slower. Are you using a specific profile that requires this? As Petter says, there are no options to automatically respond to indications.

    There are use-cases where this restriction makes sense, e.g. with Service Changed and attribute caching. The spec states that once a Service Changed indication has been confirmed "(...) the server can consider the client to be aware of the updated Attribute Handles", which means you have to re-discover parts of the database before you're technically allowed to send a confirm.

Children
No Data
Related