l2cap_ecbm_create_channels() function
Create outgoing channel in Enhanced Credit-Based Flow-Control Mode
Arguments
packet_handler
Packet handler for this connection
con_handle
HCI Connection Handle
security_level
Minimum required security level
psm
Service PSM to connect to
num_channels
number of channels to create
initial_credits
Number of initial credits provided to peer per channel or L2CAP_LE_AUTOMATIC_CREDITS to enable automatic credits
receive_buffer_size
buffer size equals MTU
receive_buffers
Array of buffers used for reassembly of L2CAP Information Frames into service data unit (SDU) with given MTU
out_local_cids
Array of L2CAP Channel Identifiers is stored here on success
Return value
status
Notes
receive_buffer points to an array of receive buffers with num_channels elements out_local_cid points to an array where CID is stored with num_channel elements