DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct

class DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct : ClusterStruct


Summary

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public constructors

PowerAdjustCapabilityStruct

PowerAdjustCapabilityStruct(
    powerAdjustCapability: List<DeviceEnergyManagementTrait.PowerAdjustStruct>? = null,
    cause: DeviceEnergyManagementTrait.PowerAdjustReasonEnum = PowerAdjustReasonEnum.NoAdjustment
)

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

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

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