sl_bt_evt_l2cap_channel_dataL2CAP Connection Oriented Channels#

Indicates that data is received on a channel.

Data Structures

struct  

sl_bt_evt_l2cap_channel_data_s

Data structure of the channel_data event.

Macros

#define 

sl_bt_evt_l2cap_channel_data_id   0x034300a0

Identifier of the channel_data event.

Detailed Description#

Indicates that data is received on a channel.

Each event should contain a K-frame of payload. The length of SDU should be specified in the first 2 bytes of the first K-frame. The sum of the payload lengths in received K-frames should be equal to the specified SDU length. Otherwise, application should disconnect the channel using sl_bt_l2cap_close_channel command. The same should happen also if the SDU length exceeds the max_sdu of local channel endpoint.


Data Structure Documentation#

sl_bt_evt_l2cap_channel_data_s#

struct sl_bt_evt_l2cap_channel_data_s

Data structure of the channel_data event.

Data Fields

uint8_t

connection

The connection handle

uint16_t

cid

The channel identifier

uint8array

data

Data received