ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct

class ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct : ClusterStruct


Measurements of various harmonics.

Summary

Public constructors

HarmonicMeasurementStruct(order: UByte, measurement: Long?)

Creates the HarmonicMeasurementStruct 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

Long?

The measured value for the given harmonic order.

UByte

The order of the harmonic being measured, which is typically an odd number unless the server is set up to report even harmonics.

Public constructors

HarmonicMeasurementStruct

HarmonicMeasurementStruct(order: UByte, measurement: Long? = null)

Creates the HarmonicMeasurementStruct class.

Public functions

getDescriptor

open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

measurement

val measurementLong?

The measured value for the given harmonic order.

order

val orderUByte

The order of the harmonic being measured, which is typically an odd number unless the server is set up to report even harmonics.