nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bt_gatt_dm_desc_next()

const struct bt_gatt_dm_attr * bt_gatt_dm_desc_next ( const struct bt_gatt_dm * dm,
const struct bt_gatt_dm_attr * prev )

#include <include/bluetooth/gatt_dm.h>

Get next descriptor.

Function returns next descriptor. The difference between this function and bt_gatt_dm_attr_next is that it returns NULL also when returned attribute appears to be next characteristic.

Parameters
[in]dmDiscovery Manager instance.
[in]prevPrevious attribute. The characteristic if we wish to get first descriptor or previous descriptor. If NULL or pointer to service attribute is given the result is undefined.
Returns
The pointer to the descriptor attribute or NULL if there is no more descriptors in the characteristic.