L2CAP connection oriented channels can be used to transfer frames of up to 65533 bytes. L2CAP is a record oriented protocol. When receiving L2CAP data, using the softdevice API, we can pass smaller buffers to the SD, using sd_ble_l2cap_ch_rx() and get notified when data arrives. That's perfectly fine for stream oriented protocols.
Is there a way, I can get the information about the frame size of the current frame (not just the segment), that is received? The background of my question is: I would like to implement a record oriented protocol over l2cap. So I need to know, where a frame starts. I could probably add some framing on my own, but this seems unnecessary as all required information is already there.
kind regards,
Torsten