Function esp_idf_sys::esp_ble_gattc_get_db

source ·
pub unsafe extern "C" fn esp_ble_gattc_get_db(
    gattc_if: esp_gatt_if_t,
    conn_id: u16,
    start_handle: u16,
    end_handle: u16,
    db: *mut esp_gattc_db_elem_t,
    count: *mut u16,
) -> esp_gatt_status_t
Expand description

@brief This function is called to get the GATT database. Note: It just get attribute data base from local cache, won’t get from remote devices.

@param[in] gattc_if: Gatt client access interface. @param[in] start_handle: the attribute start handle @param[in] end_handle: the attribute end handle @param[in] conn_id: connection ID which identify the server. @param[in] db: output parameter which will contain the GATT database copy. Caller is responsible for freeing it. @param[in] count: number of elements in database.

@return - ESP_OK: success - other: failed