OnOffTrait.OnOffControlBitmap

data class OnOffTrait.OnOffControlBitmap


Flags for cluster control.

Summary

Public constructors

OnOffControlBitmap(acceptOnlyWhenOn: Boolean)

Creates the OnOffControlBitmap data class.

Public functions

open ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

Boolean

Indicates a command is only accepted when the onOff attribute is true.

String

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

String

Trait identifier of the Matter Cluster that defines the bitmap Data Type.

Public constructors

OnOffControlBitmap

OnOffControlBitmap(acceptOnlyWhenOn: Boolean = false)

Creates the OnOffControlBitmap data class.

Public functions

toRaw

open fun toRaw(): ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

acceptOnlyWhenOn

val acceptOnlyWhenOnBoolean

Indicates a command is only accepted when the onOff attribute is true.

bitmapName

val bitmapNameString

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

traitId

val traitIdString

Trait identifier of the Matter Cluster that defines the bitmap Data Type. Refer to ClusterId.traitId for the format.