Result = WriteSerialPortData(#SerialPort, *Buffer, Length)Description
Writes an arbitrary amount of data to the specified serial port.
#SerialPort The serial port to use. *Buffer The buffer to write. Length The buffer length to write, in bytes.
The number of bytes written to the serial port, or zero if the operation has failed.
To check how much data is available in the output buffer, use AvailableSerialPortOutput().