MeterStateStore

Contains live meter data, maintained by the handler.

See also

Constructors

Link copied to clipboard
constructor(meter: PowerMeter)

Properties

Link copied to clipboard

Latest meter event for this meter during the observation period

Link copied to clipboard

Is this meter physically present

Link copied to clipboard

The status of a power meter handler.

Link copied to clipboard

Latest status message of a power meter handler.

Functions

Link copied to clipboard
fun reset()
Link copied to clipboard
fun restore(meterState: MeterState)

Restore state data from a snapshot.

Link copied to clipboard

Makes an atomic copy of the state.

Link copied to clipboard
fun update(event: MeterReading)