Function esp_idf_sys::esp_ble_gattc_get_descr_by_uuid
source · pub unsafe extern "C" fn esp_ble_gattc_get_descr_by_uuid(
gattc_if: esp_gatt_if_t,
conn_id: u16,
start_handle: u16,
end_handle: u16,
char_uuid: esp_bt_uuid_t,
descr_uuid: esp_bt_uuid_t,
result: *mut esp_gattc_descr_elem_t,
count: *mut u16,
) -> esp_gatt_status_t
Expand description
@brief Find the descriptor with the given characteristic uuid in the gattc cache Note: It just get descriptor from local cache, won’t get from remote devices.
@param[in] gattc_if: Gatt client access interface. @param[in] conn_id: connection ID which identify the server. @param[in] start_handle: the attribute start handle @param[in] end_handle: the attribute end handle @param[in] char_uuid: the characteristic uuid. @param[in] descr_uuid: the descriptor uuid. @param[out] result: The pointer to the descriptor in the given characteristic. @param[inout] count: input the number of descriptor want to find, it will output the number of descriptor has been found in the gattc cache with the given characteristic.
@return - ESP_OK: success - other: failed