BleL2capChannel

interface BleL2capChannel

Abstraction for an L2CAP channel used by BLE central and peripheral mdoc transports.

Functions

Link copied to clipboard
abstract fun close()

Closes the L2CAP channel.

Link copied to clipboard
abstract suspend fun read(buffer: ByteArray, offset: Int, length: Int): Int

Reads up to length bytes into buffer starting at offset.

Link copied to clipboard
abstract suspend fun write(data: ByteArray)

Writes all bytes in data to the L2CAP channel and flushes it.