Abstraction for an L2CAP channel used by BLE central and peripheral mdoc transports.
Closes the L2CAP channel.
Reads up to length bytes into buffer starting at offset.
Writes all bytes in data to the L2CAP channel and flushes it.