struct

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

Inherits TLV::Serializable < Struct < Value < Object

Input to the OnOff onWithTimedOff command

Constructors

new(any : TLV::Any)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Source
from_slice(bytes : Bytes)
Source
from_tlv(any : TLV::Any)
Source
from_tlv(data : Bytes)
Source

Instance methods

off_wait_time

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

Source
off_wait_time=(off_wait_time : UInt16)

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

Source
on_off_control

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.

Source
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.

Source
on_time

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

Source
on_time=(on_time : UInt16)

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

Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source