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

Defined in:

matter/cluster/definitions/on_off.cr

Enum Members

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 Method Summary

Instance Method Detail

def off? #

Returns true if this enum value equals Off


[View source]
def on? #

Returns true if this enum value equals On


[View source]
def toggle? #

Returns true if this enum value equals Toggle


[View source]