ColorControlTrait.EnhancedStepHueCommand.Request

class ColorControlTrait.EnhancedStepHueCommand.Request


The request payload for the EnhancedStepHue command.

Summary

Public constructors

Request(
    stepMode: ColorControlTrait.HueStepMode,
    stepSize: UShort,
    transitionTime: UShort,
    optionsMask: UByte,
    optionsOverride: UByte
)

Creates a request payload for the EnhancedStepHue command.

Public properties

UByte

Determines which bits in the options attribute should be overridden by optionsOverride.

UByte

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

ColorControlTrait.HueStepMode

The direction in which to move the enhanced hue.

UShort

The amount of units to move the device's enhancedCurrentHue to.

UShort

The time (in 0.1 seconds) taken to move the device to the new enhanced hue.

Public constructors

Request

Request(
    stepMode: ColorControlTrait.HueStepMode = HueStepMode.Up,
    stepSize: UShort,
    transitionTime: UShort,
    optionsMask: UByte,
    optionsOverride: UByte
)

Creates a request payload for the EnhancedStepHue command.

Public properties

optionsMask

val optionsMaskUByte

Determines which bits in the options attribute should be overridden by optionsOverride.

optionsOverride

val optionsOverrideUByte

If the corresponding bit in optionsMask is set to 1, the bit set here overrides the corresponding bit in options attribute.

stepMode

val stepModeColorControlTrait.HueStepMode

The direction in which to move the enhanced hue. This must be one of the values in HueStepMode.

stepSize

val stepSizeUShort

The amount of units to move the device's enhancedCurrentHue to.

transitionTime

val transitionTimeUShort

The time (in 0.1 seconds) taken to move the device to the new enhanced hue.