Receive one binary byte from the ASCOM serial port

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

Syntax

C#
public byte ReceiveByte()
Visual Basic
Public Function ReceiveByte As Byte
Visual C++
public:
virtual unsigned char ReceiveByte() sealed

Return Value

The received byte

Implements

ISerial..::..ReceiveByte()()()()

Remarks

Use this for 8-bit (binary data). If a timeout occurs, a TimeoutException is raised.

Exceptions

ExceptionCondition
System..::..TimeoutExceptionThrown when a receive timeout occurs.
ASCOM.Utilities.Exceptions..::..SerialPortInUseExceptionThrown when unable to acquire the serial port
ASCOM..::..NotConnectedExceptionThrown when this command is used before setting Connect = True

See Also