writePacket

abstract suspend fun writePacket(packet: ByteArray)

Writes a complete NCI packet to the controller.

Throws

IOException

if writing to the controller transport fails.

CancellationException

if the coroutine is cancelled.