Builder

class Builder

Builder class for D253Request objects.

Used to compile byte data requests in the specific format which Dasung253 monitors expect.

You must specify both a command to execute, and a payload to send along with the command.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Compiles the request into a byte array and inserts it into a D253Request object.

Link copied to clipboard

Sets the command to be inserted into the data packet.

Link copied to clipboard

Sets the command and payload to be inserted into the data packet.

Link copied to clipboard
fun setPayload(timestamp: Instant): D253Request.Builder

Sets the payload to be inserted into the data packet.