Function esp_idf_svc::hal::sys::esp_ble_gap_disconnect
source ยท pub unsafe extern "C" fn esp_ble_gap_disconnect(
remote_device: *mut u8,
) -> i32
Expand description
@brief This function is to disconnect the physical connection of the peer device gattc may have multiple virtual GATT server connections when multiple app_id registered. esp_ble_gattc_close (esp_gatt_if_t gattc_if, uint16_t conn_id) only close one virtual GATT server connection. if there exist other virtual GATT server connections, it does not disconnect the physical connection. esp_ble_gap_disconnect(esp_bd_addr_t remote_device) disconnect the physical connection directly.
@param[in] remote_device : BD address of the peer device
@return - ESP_OK : success - other : failed