ble_gatts_find_dsc
int
ble_gatts_find_dsc(
const ble_uuid_t *svc_uuid,
const ble_uuid_t *chr_uuid,
const ble_uuid_t *dsc_uuid,
uint16_t *out_handle
)
Description
Retrieves the attribute handle associated with a local GATT descriptor.
Parameters
Parameter | Description |
---|
svc_uuid128 | The UUID of the grandparent service. |
chr_uuid128 | The UUID of the parent characteristic. |
dsc_uuid128 | The UUID of the descriptor ro look up. |
out_handle | On success, populated with the handle of the descripytor attribute. Pass null if you don't need this value. |
Returned values
Value | Condition |
---|
0 | Success. |
BLE_HS_ENOENT | The specified service, characteristic, or descriptor could not be found. |