Function esp_idf_sys::esp_ble_gattc_get_attr_count
source · pub unsafe extern "C" fn esp_ble_gattc_get_attr_count(
gattc_if: esp_gatt_if_t,
conn_id: u16,
type_: esp_gatt_db_attr_type_t,
start_handle: u16,
end_handle: u16,
char_handle: u16,
count: *mut u16,
) -> esp_gatt_status_t
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