Click or drag to resize
SerialReceiveByte Method
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.2.0.2774)
Syntax
public byte ReceiveByte()

Return Value

Type: Byte
The received byte
Exceptions
ExceptionCondition
TimeoutExceptionThrown when a receive timeout occurs.
SerialPortInUseExceptionThrown when unable to acquire the serial port
NotConnectedExceptionThrown when this command is used before setting Connect = True
Remarks
Use this for 8-bit (binary data). If a timeout occurs, a TimeoutException is raised.
See Also