sl_bt_evt_l2cap_le_channel_open_responseL2CAP Connection Oriented Channels#

Indicates that an LE credit-based connection response is received.

Data Structures

struct  

sl_bt_evt_l2cap_le_channel_open_response_s

Data structure of the le_channel_open_response event.

Macros

#define 

sl_bt_evt_l2cap_le_channel_open_response_id   0x024300a0

Identifier of the le_channel_open_response event.

Detailed Description#

Indicates that an LE credit-based connection response is received.

Result code sl_bt_l2cap_connection_result_successful in errorcode implies that the logical channel is established and data can be sent or received on the channel. Ignore other fields if errorcode indicates that the connection request was rejected.


Data Structure Documentation#

sl_bt_evt_l2cap_le_channel_open_response_s#

struct sl_bt_evt_l2cap_le_channel_open_response_s

Data structure of the le_channel_open_response event.

Data Fields

uint8_t

connection

The Bluetooth connection handle on which the response is received

uint16_t

cid

The channel identifier

uint16_t

max_sdu

The Maximum Service Data Unit size of the peer channel endpoint

uint16_t

max_pdu

The maximum PDU payload size of the peer channel endpoint

uint16_t

credit

The initial credit value of the peer channel endpoint, i.e., number of PDUs the local channel endpoint can send

uint16_t

errorcode

Enum sl_bt_l2cap_connection_result_t.

An L2CAP error code as the outcome of the connection request.

Result sl_bt_l2cap_connection_result_successful indicates the connection request was accepted and the logical channel is established. Other error code value indicates the connection request was refused by the peer device and other parameters of this event must be ignored.