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

◆ bt_gatt_dm_attr_next()

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

#include <include/bluetooth/gatt_dm.h>

Get next attribute.

Function returns the attribute next to the given one. It returns any type of the attribute.

Parameters
[in]dmDiscovery Manager instance.
[in]prevPrevious attribute or NULL if we wish to get first attribute (just after service).
Returns
Attribute next to the prev or the first attribute if NULL is given.