OnOffTrait.OnWithTimedOffCommand.Request

class OnOffTrait.OnWithTimedOffCommand.Request


The request payload for the OnWithTimedOff command.

Summary

Public constructors

Request(
    onOffControl: OnOffTrait.OnOffControlBitmap,
    onTime: UShort,
    offWaitTime: UShort
)

Creates a request payload for the OnWithTimedOff command.

Public properties

UShort

The guarded off duration to set for the device.

OnOffTrait.OnOffControlBitmap

When set to 1, the onWithTimedOff command will only be processed if the onOff attribute is true.

UShort

The duration for which device is turned on.

Public constructors

Request

Request(
    onOffControl: OnOffTrait.OnOffControlBitmap = OnOffControlBitmap(),
    onTime: UShort,
    offWaitTime: UShort
)

Creates a request payload for the OnWithTimedOff command.

Public properties

offWaitTime

val offWaitTimeUShort

The guarded off duration to set for the device. Sets the value of the offWaitTime attribute.

onOffControl

val onOffControlOnOffTrait.OnOffControlBitmap

When set to 1, the onWithTimedOff command will only be processed if the onOff attribute is true. When set to 0, the onWithTimedOff command is always processed.

onTime

val onTimeUShort

The duration for which device is turned on. Sets the value of the onTime attribute.