struct Matter::Cluster::Definitions::OnOff::OnWithTimedOffRequest

Overview

Input to the OnOff onWithTimedOff command

Included Modules

Defined in:

matter/cluster/definitions/on_off.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Slice(UInt8)) #

[View source]

Instance Method Detail

def off_wait_time : UInt16 #

The OffWaitTime field is used to adjust the value of the OffWaitTime attribute.


[View source]
def off_wait_time=(off_wait_time : UInt16) #

The OffWaitTime field is used to adjust the value of the OffWaitTime attribute.


[View source]
def on_off_control : UInt8 #

The OnOffControl field contains information on how the server is to be operated. This field shall be formatted as illustrated in Format of the OnOffControl Field of the OnWithTimedOff Command.

The AcceptOnlyWhenOn sub-field is 1 bit in length and specifies whether the OnWithTimedOff command is to be processed unconditionally or only when the OnOff attribute is equal to TRUE. If this sub-field is set to 1, the OnWithTimedOff command shall only be accepted if the OnOff attribute is equal to TRUE. If this sub-field is set to 0, the OnWithTimedOff command shall be processed unconditionally.


[View source]
def on_off_control=(on_off_control : UInt8) #

The OnOffControl field contains information on how the server is to be operated. This field shall be formatted as illustrated in Format of the OnOffControl Field of the OnWithTimedOff Command.

The AcceptOnlyWhenOn sub-field is 1 bit in length and specifies whether the OnWithTimedOff command is to be processed unconditionally or only when the OnOff attribute is equal to TRUE. If this sub-field is set to 1, the OnWithTimedOff command shall only be accepted if the OnOff attribute is equal to TRUE. If this sub-field is set to 0, the OnWithTimedOff command shall be processed unconditionally.


[View source]
def on_time : UInt16 #

The OnTime field is used to adjust the value of the OnTime attribute.


[View source]
def on_time=(on_time : UInt16) #

The OnTime field is used to adjust the value of the OnTime attribute.


[View source]