writePacket

abstract suspend fun writePacket(packet: ByteArray)

Writes an H4-framed HCI packet to the controller.

Throws

IOException

if writing to the underlying HCI transport fails.

CancellationException

if the coroutine is cancelled.