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

ParameterDescription
svc_uuid128The UUID of the parent service.
chr_uuid128The UUID of the characteristic to look up.
out_def_handleOn success, populated with the handle of the characteristic definition attribute. Pass null if you don't need this value.
out_val_handleOn success, populated with the handle of the characteristic value attribute. Pass null if you don't need this value.

Returned values

ValueCondition
0Success.
BLE_HS_ENOENTThe specified service or characteristic could not be found.