DescriptorTrait.DeviceTypeStruct

class DescriptorTrait.DeviceTypeStruct : ClusterStruct


An object describing endpoint conformance to a release of a device type definition.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

DeviceTypeStruct(deviceType: UInt, revision: UShort)

Creates the DeviceTypeStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UInt

The device type definition.

UShort

The implemented revision of the device type definition.

Public constructors

DeviceTypeStruct

DeviceTypeStruct(deviceType: UInt, revision: UShort)

Creates the DeviceTypeStruct class.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

deviceType

val deviceTypeUInt

The device type definition.

revision

val revisionUShort

The implemented revision of the device type definition.