D253SerialPort

class D253SerialPort(val port: ISerialPortWrapper) : ID253SerialPort

Serial port implementation for interacting with Dasung253 monitors.

Contains low-level functions for interacting with the serial port.

If you want higher-level actions (eg. to change the display mode) instead of direct port access, take a look at the D253Monitor class instead.

Parameters

port

The underlying serial port through which this class sends and receives data

See also

ISerialPortWrapper

Constructors

Link copied to clipboard
constructor(port: ISerialPortWrapper)

Properties

Link copied to clipboard
val port: ISerialPortWrapper
Link copied to clipboard
val writeTimeout: Long = 1000

Default timeout of 10s for write operations

Functions

Link copied to clipboard
open suspend override fun write(packet: D253Request): D253Response
open suspend override fun write(arg: D253RequestValue): D253Response
open suspend override fun write(cmd: D253Attribute, arg: Instant): D253Response

Writes a request to the monitor's serial port and interprets the response.