write Bytes
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
Timeout Cancellation Exception
If operation takes longer than the time specified by the readTimeout