PowerSensorClient class

gRPC client for the PowerSensor component.

Inheritance
Implemented types

Constructors

PowerSensorClient(String name, ClientChannelBase channel)

Properties

channel ClientChannelBase
getter/setter pairoverride
client PowerSensorServiceClient
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

current({Map<String, dynamic>? extra}) Future<Current>
Get the current (amperes) and boolean isAC
override
doCommand(Map<String, dynamic> command) Future<Map<String, dynamic>>
Send/Receive arbitrary commands to the Resource
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
power({Map<String, dynamic>? extra}) Future<double>
Get the power (watts)
override
readings({Map<String, dynamic>? extra}) Future<Map<String, dynamic>>
Obtain the measurements/data specific to this Sensor If a sensor is not configured to have a measurement or fails to read a piece of data, it will not appear in the readings dictionary.
override
toString() String
A string representation of this object.
inherited
voltage({Map<String, dynamic>? extra}) Future<Voltage>
Get the voltage (volts) and boolean isAC
override

Operators

operator ==(Object other) bool
The equality operator.
inherited