writeBytes

open suspend override fun writeBytes(buffer: ByteArray): Int

Writes the provided byte data to the serial port.

Return

Number of bytes written to the serial port

Parameters

buffer

ByteArray to write to the serial port

Throws

TimeoutCancellationException

If operation takes longer than the time specified by the readTimeout