write

suspend fun write(packet: Packet)

Queues up an arbitrary write request.

A write request is one which doesn't expect any meaningful data in response. For example, a request which either succeeds or fails, and doesn't provide any further insight into the operation beyond that.

Parameters

packet

Data packet which contains an array of bytes to send to the PGN daemon.