Function nrf_softdevice_s140::sd_ble_l2cap_ch_release
source · pub unsafe fn sd_ble_l2cap_ch_release(conn_handle: u16, local_cid: u16) -> u32
Expand description
@brief Release an L2CAP channel.
@details This sends a Disconnection Request packet to a peer.
@events @event{@ref BLE_L2CAP_EVT_CH_RELEASED, Release complete.} @endevents
@mscs @mmsc{@ref BLE_L2CAP_CH_RELEASE_MSC} @endmscs
@param[in] conn_handle Connection Handle. @param[in] local_cid Local Channel ID of the L2CAP channel.
@retval ::NRF_SUCCESS Successfully queued request for transmission. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid Connection Handle. @retval ::NRF_ERROR_INVALID_STATE Invalid State to perform operation (Setup or release is in progress for the L2CAP channel). @retval ::NRF_ERROR_NOT_FOUND CID not found.