PowerSensorClient class Components
gRPC client for the PowerSensor component.
- Inheritance
-
- Object
- Resource
- PowerSensor
- PowerSensorClient
- 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 in amperes, and whether the current
is AC (true) or DC (false).
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> > -
Get the measurements or readings from this PowerSensor.
If a sensor is not configured correctly 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 in volts, and whether the power is
AC (true) or DC (false).
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited