ReadSerialPortData()

Syntax

Result = ReadSerialPortData(#SerialPort, *Buffer, Length)
Description
Read an arbitrary amount of data from the #SerialPort. The number of bytes which are actually read are returned in 'Result'. If the input buffer was empty, this function will block until data is available. If a read error occurs, it will return 0. To check if data is available, use AvailableSerialPortInput().

Supported OS

All

<- OpenSerialPort() - SerialPort Index - SerialPortError() ->