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

◆ bt_gatt_dm_char_by_uuid()

const struct bt_gatt_dm_attr * bt_gatt_dm_char_by_uuid ( const struct bt_gatt_dm * dm,
const struct bt_uuid * uuid )

#include <include/bluetooth/gatt_dm.h>

Get the characteristic by its UUID.

Function finds characteristic attribute by the UUID stored in its characteristic value. If the selected characteristic is not found in parsed service it returns NULL.

Parameters
[in]dmDiscovery instance
[in]uuidThe UUID of the characteristic
Returns
The characteristic attribute (the one with UUID set to BT_UUID_GATT_CHRC) with the selected UUID inside the characteristic value. Returns NULL if no such characteristic is present in the current service.