Function esp_idf_svc::hal::sys::esp_ble_gattc_close
source ยท pub unsafe extern "C" fn esp_ble_gattc_close(
gattc_if: u8,
conn_id: u16,
) -> i32
Expand description
@brief Close the virtual connection to the GATT server. gattc may have multiple virtual GATT server connections when multiple app_id registered, this API only close one virtual GATT server connection. if there exist other virtual GATT server connections, it does not disconnect the physical connection. if you want to disconnect the physical connection directly, you can use esp_ble_gap_disconnect(esp_bd_addr_t remote_device).
@param[in] gattc_if: Gatt client access interface. @param[in] conn_id: connection ID to be closed.
@return - ESP_OK: success - other: failed