setPayload

Sets the payload to be inserted into the data packet.

An attribute can be used as either the command (to set that value) or a payload (to get that value).

So if you are using this function, you likely want to use setCommand with the SET_PARAMETER command.

Return

The builder

Parameters

payload

Payload to send to the monitor

See also


fun setPayload(timestamp: Instant): D253Request.Builder

Sets the payload to be inserted into the data packet.

This command is only used for RTC (real-time clock) requests.

Return

The builder

Parameters

timestamp

Moment in time which should be converted to a timestamp and inserted into the payload

See also

Instant