enum

Matter::Cluster::Definitions::OnOff::StartUp

Inherits Enum < Comparable < Value < Object

Constants

Off = 0_u8

Set the OnOff attribute to FALSE

On = 1_u8

Set the OnOff attribute to TRUE

Toggle = 2_u8

If the previous value of the OnOff attribute is equal to FALSE, set the OnOff attribute to TRUE. If the previous value of the OnOff attribute is equal to TRUE, set the OnOff attribute to FALSE (toggle).

Instance methods

off?

Returns true if this enum value equals Off

Source
on?

Returns true if this enum value equals On

Source
toggle?

Returns true if this enum value equals Toggle

Source