[−][src]Function openthread_sys::otPlatBleL2capDisconnect
pub unsafe extern "C" fn otPlatBleL2capDisconnect(
aInstance: *mut otInstance,
aLocalCid: u16,
aPeerCid: u16
) -> otError
Sends an L2CAP Disconnection Request.
@param[in] aInstance The OpenThread instance structure. @param[in] aLocalCid The local channel endpoint ID value. @param[in] aPeerCid The peer channel endpoint ID value.
@retval ::OT_ERROR_NONE L2CAP Disconnection Request has been sent. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state e.g. not in the GAP connection. @retval ::OT_ERROR_INVALID_ARGS Invalid parameters has been supplied. @retval ::OT_ERROR_NO_BUFS No available internal buffer found.