Click or drag to resize
SerialReceiveTerminatedBinary Method
Receive characters from the ASCOM serial port until the given terminator bytes are seen, return as a byte array

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.3.0.2839)
Syntax
public byte[] ReceiveTerminatedBinary(
	byte[] TerminatorBytes
)

Parameters

TerminatorBytes
Type: SystemByte
Array of bytes that indicates end of message

Return Value

Type: Byte
Byte array of received characters
Exceptions
ExceptionCondition
SerialPortInUseExceptionThrown when unable to acquire the serial port
NotConnectedExceptionThrown when this command is used before setting Connect = True
Remarks

If a timeout occurs, a TimeoutException is raised.

This function exists in the COM component but is not documented in the help file.

See Also