# ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct

# ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct


```
class ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct : ClusterStruct
```

<br />

*** ** * ** ***

Measurements of various harmonics.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#HarmonicMeasurementStruct(kotlin.UByte,kotlin.Long)(order: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, measurement: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?)` Creates the HarmonicMeasurementStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#measurement()` The measured value for the given harmonic order. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ElectricalPowerMeasurementTrait.HarmonicMeasurementStruct#order()` 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

```
@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.

## Public properties

### measurement

```
val measurement: Long?
```

The measured value for the given harmonic order.

### order

```
val 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.