TemperatureControlTrait.SetTemperatureCommand.Request

class TemperatureControlTrait.SetTemperatureCommand.Request


The request payload for the SetTemperature command.

Summary

Public constructors

Request(
    targetTemperature: OptionalValue<Short>,
    targetTemperatureLevel: OptionalValue<UByte>
)

Creates a request payload for the SetTemperature command.

Public properties

OptionalValue<Short>

The desired temperature setpoint.

OptionalValue<UByte>

The desired temperature level, in terms of the index of the setting in the supportedTemperatureLevels list.

Public constructors

Request

Request(
    targetTemperature: OptionalValue<Short> = OptionalValue.absent(),
    targetTemperatureLevel: OptionalValue<UByte> = OptionalValue.absent()
)

Creates a request payload for the SetTemperature command.

Public properties

targetTemperature

val targetTemperatureOptionalValue<Short>

The desired temperature setpoint.

targetTemperatureLevel

val targetTemperatureLevelOptionalValue<UByte>

The desired temperature level, in terms of the index of the setting in the supportedTemperatureLevels list.