Send an SDU (Service Data Unit) over an L2CAP channel. This function sends an SDU over the specified L2CAP channel. The SDU is encapsulated in L2CAP frames and transmitted to the remote device.
Pointer to the L2CAP channel structure representing the channel to send the SDU on.
sdu_tx
Pointer to the os_mbuf structure containing the SDU (Service Data Unit) to send.
Return value
0 on success; BLE_HS_ESTALLED: if there was not enough credits available to send whole SDU. The application needs to wait for the event 'BLE_L2CAP_EVENT_COC_TX_UNSTALLED' before being able to transmit more data; Another non-zero value on failure.
Related Functions
Found 45 other functions taking a ble_l2cap_chan
argument:
Get information about an L2CAP channel. This function retrieves information about the specified L2CAP channel and populates the provided `ble_l2cap_chan_info` structure with the channel's details.
Check if the L2CAP channel is ready to receive an SDU. This function checks if the specified L2CAP channel is ready to receive an SDU (Service Data Unit). It can be used to determine if the channel is in a state where it can accept incoming data.