Receive characters from the ASCOM serial port until the given terminator bytes are seen, return as a byte array

Namespace: ASCOM.Utilities.Interfaces
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
byte[] ReceiveTerminatedBinary(
	byte[] TerminatorBytes
)
Visual Basic
Function ReceiveTerminatedBinary ( _
	TerminatorBytes As Byte() _
) As Byte()
Visual C++
array<unsigned char>^ ReceiveTerminatedBinary(
	array<unsigned char>^ TerminatorBytes
)

Parameters

TerminatorBytes
Type: array<System..::..Byte>[]()[][]
Array of bytes that indicates end of message

Return Value

Byte array of received characters

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