This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to send data via l2cap layer ?

Other Parts Discussed in Thread: CC2540

Hi all

I have CC2540keyfod and CC2540 dongle.

I am very interested in sending data by using l2cap layer.

Luckily,the l2cap.h offer several functions like L2CAP_RegisterApp,L2CAP_SendData for us to register and send data via l2cap.

Here, The Func extern bStatus_t L2CAP_RegisterApp( uint8 taskId, uint16 CID ). 

what the taskid parameter mean? Actually how to use the function?? 

Is there example for sending data via l2cap????

  • Hello Janka,

    Using the L2Cap layer for communicating with the device implies a greater understanding of BLE than those using the GATT or HCI.  You should be reading the Core Bluetooth v4.0 guide section that covers the L2CAP.  Most, if not all the functions in the source code would have to conform to the structure outlined in the specifications.

    To my knowledge, there isn't any documentation as in a PDF that covers this.  You may find information in the BLE HTML that is in the documents folder of some help.

    Thanks,