SmartPower3Handler

Constructors

Link copied to clipboard
constructor(meter: PowerMeter)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun assign(observer: ReadingObserver)

Resets the meter state and adds an observer.

Link copied to clipboard
open override fun close()

Close the handler.

Link copied to clipboard

Unassigns this handler and returns & assigns a dummy copy.

Link copied to clipboard
fun id(): String

Shorthand for the meter's ID.

Link copied to clipboard
fun init()

Initialize the handler. Includes the opening of any associated ports and setting port parameters.

Link copied to clipboard
Link copied to clipboard
open fun off(channel: String? = null)

Power on the meter channel. After this call the channel should be powered off.

Link copied to clipboard
open fun on(channel: String? = null)

Power on the meter channel. After this call the channel should be powered on.

Link copied to clipboard
open fun onOff(channel: String? = null)

Toggle the power on the meter channel. After this call the channel should be in reverse state (on <-> off).

Link copied to clipboard
fun start()

Start receiving data.

Link copied to clipboard

Shorthand for the meter's state.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun unassign()

Resets the meter state and adds an observer.