ElectricalEnergyMeasurementTrait.EnergyMeasurementStruct

class ElectricalEnergyMeasurementTrait.EnergyMeasurementStruct


Indicates the amount of energy measured during a given measurement period.

Summary

Public constructors

EnergyMeasurementStruct(
    energy: Long,
    startTimestamp: OptionalValue<UInt>,
    endTimestamp: OptionalValue<UInt>,
    startSystime: OptionalValue<ULong>,
    endSystime: OptionalValue<ULong>
)

Creates the EnergyMeasurementStruct class.

Public properties

OptionalValue<ULong>

The time, in milliseconds, since boot at the end of the measurement period.

OptionalValue<UInt>

The timestamp in UTC of the end of the measurement period.

Long

The reported energy.

OptionalValue<ULong>

The time, in milliseconds, since boot at the start of the measurement period.

OptionalValue<UInt>

The timestamp in UTC of the start of the measurement period.

Public constructors

EnergyMeasurementStruct

EnergyMeasurementStruct(
    energy: Long = 0,
    startTimestamp: OptionalValue<UInt> = OptionalValue.absent(),
    endTimestamp: OptionalValue<UInt> = OptionalValue.absent(),
    startSystime: OptionalValue<ULong> = OptionalValue.absent(),
    endSystime: OptionalValue<ULong> = OptionalValue.absent()
)

Creates the EnergyMeasurementStruct class.

Public properties

endSystime

val endSystimeOptionalValue<ULong>

The time, in milliseconds, since boot at the end of the measurement period.

endTimestamp

val endTimestampOptionalValue<UInt>

The timestamp in UTC of the end of the measurement period.

energy

val energyLong

The reported energy.

startSystime

val startSystimeOptionalValue<ULong>

The time, in milliseconds, since boot at the start of the measurement period.

startTimestamp

val startTimestampOptionalValue<UInt>

The timestamp in UTC of the start of the measurement period.