[][src]Function openthread_sys::otPlatBleGapDisconnect

pub unsafe extern "C" fn otPlatBleGapDisconnect(
    aInstance: *mut otInstance
) -> otError

Disconnects BLE connection.

The BLE device shall indicate the OT_BLE_HCI_REMOTE_USER_TERMINATED HCI code reason.

@param[in] aInstance The OpenThread instance structure.

@retval ::OT_ERROR_NONE Disconnection procedure has been started. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state.