1.How to enable Indication as BLE client ?
2.what should be bt_gatt_subscribe_params fields for using indication?
3.How to send back acknowledgment/confirmation to Server ?
1.How to enable Indication as BLE client ?
2.what should be bt_gatt_subscribe_params fields for using indication?
3.How to send back acknowledgment/confirmation to Server ?
Hi
1. To enable Indications on the Client side, you must write 0x0002 to the CCCD of the characteristic you want indications from.
I'll have to get back to you on questions 2 and 3, as I'm currently waiting from some input on this from our NCS experts. Thank you for your patience.
Best regards,
Simon
Thanks for your reply
i will try that
2. Indicationas are supported by the bt_gatt_indicate() API. Subscriptions to indications can be set by calling BT_GATT_CHRC_INDICATE (to permit indications of a characteristic value with acknowledgment), and BT_GATT_CCC_INDICATE to make characteristic values be indicated. The callback is called notify, but you'll get indications.
3. Make sure to use bt_gatt_write for writing to ensure responses/acknowledgements.
All of this is specified in the Zephyr GATT documentation here.
Best regards,
Simon
Thanks Simonr