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 ?
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
Thanks Simonr