Function esp_idf_svc::sys::esp_ble_gattc_get_attr_count
source · pub unsafe extern "C" fn esp_ble_gattc_get_attr_count(
gattc_if: u8,
conn_id: u16,
type_: u32,
start_handle: u16,
end_handle: u16,
char_handle: u16,
count: *mut u16,
) -> u32
Expand description
@brief Find the attribute count with the given service or characteristic in the gattc cache
@param[in] gattc_if: Gatt client access interface. @param[in] conn_id: connection ID which identify the server. @param[in] type: the attribute type. @param[in] start_handle: the attribute start handle, if the type is ESP_GATT_DB_DESCRIPTOR, this parameter should be ignore @param[in] end_handle: the attribute end handle, if the type is ESP_GATT_DB_DESCRIPTOR, this parameter should be ignore @param[in] char_handle: the characteristic handle, this parameter valid when the type is ESP_GATT_DB_DESCRIPTOR. If the type isn’t ESP_GATT_DB_DESCRIPTOR, this parameter should be ignore. @param[out] count: output the number of attribute has been found in the gattc cache with the given attribute type.
@return - ESP_OK: success - other: failed