readPacket

open suspend override fun readPacket(): ByteArray?

Reads the next complete NCI packet from the controller, or returns null if closed.

Throws

IOException

if reading from the controller transport fails.

CancellationException

if the coroutine is cancelled.