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