write

open suspend override fun write(cmd: D253Attribute, arg: Instant): D253Response

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

This function is for transmitting timestamps to the monitor, rather than simple hex or integer values like other requests do.

This is only needed for RTC requests.

Return

D253Response object containing the parsed data received from the monitor

Parameters

cmd

Command to execute

arg

Moment of time to use as the argument


open suspend override fun write(arg: D253RequestValue): D253Response

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

Return

D253Response object containing the parsed data received from the monitor

Parameters

arg

Object which contains both the command to execute and the value to be transmitted


open suspend override fun write(packet: D253Request): D253Response

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

Return

D253Response object containing the parsed data received from the monitor

Parameters

packet

Packet of data to write to the port