WriteSerialPortData()

Syntax

Result = WriteSerialPortData(#SerialPort, *Buffer, Length)
Description
Writes an arbitrary amount of data to the specified serial port.

Parameters

#SerialPort The serial port to use.
*Buffer The buffer to write.
Length The buffer length to write, in bytes.

Return value

The number of bytes written to the serial port, or zero if the operation has failed.

Remarks

To check how much data is available in the output buffer, use AvailableSerialPortOutput().

See Also

OpenSerialPort(), WriteSerialPortString()

Supported OS

All

<- SetSerialPortStatus() - SerialPort Index - WriteSerialPortString() ->