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

◆ bt_gatt_dm_attr_service_val()

struct bt_gatt_service_val * bt_gatt_dm_attr_service_val ( const struct bt_gatt_dm_attr * attr)

#include <include/bluetooth/gatt_dm.h>

Access service value saved with service attribute.

This function access the service value parsed and saved previously in the user_data attribute field.

Note
Use it only on the attribute parsed in this module. To access service attribute use bt_gatt_dm_service_get function.
Parameters
[in]attrService attribute
Returns
The service value from the parsed attribute or NULL when attribute UUID value is unexpected.