Builder

class Builder

Builder class for D253RequestValue objects.

Used to compile byte data requests in the specific format which Dasung253 monitors expect, and to validate that the value is appropriate for the given command.

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

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Validates the provided value against the provided command, then converts the data as appropriate and packs it into a D253RequestValue object.

Link copied to clipboard

Sets the command to be inserted into the data packet, and to be used for data validation.

Link copied to clipboard

Sets the value to be validated and converted, then inserted into the data packet.