Click or drag to resize

SerialPortReadBytes Method

Reads numberOfBytes bytes from the serial port and discards them. It works only if AutoReceive property is false.

Namespace: ZylSoft.Serial
Assembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax
public byte[] ReadBytes(
	int numberOfBytes,
	int timeout = 60000
)

Parameters

numberOfBytes  Int32
The number of bytes to read.
timeout  Int32  (Optional)
If the timeout (milliseconds) interval elapses and cannot read enough bytes (numberOfChars), the method will return what it read till then, less bytes. Default value: 60000.

Return Value

Byte
Returns numberOfBytes bytes from the serial port.
See Also