PowerSensorClient class Components
gRPC client for the PowerSensor component.
- Inheritance
-
- Object
- Resource
- PowerSensor
- PowerSensorClient
- Implemented types
- Mixed-in types
Constructors
- PowerSensorClient(String name, ClientChannelBase channel)
Properties
- callOptions → CallOptions
-
no setterinherited
- 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
-
disableDebugLogging(
) → void -
Disable debug logging for gRPC calls by removing the trace key from the metadata.
inherited
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
override
-
enableDebugLogging(
{String? traceKey}) → void -
Enable debug logging for gRPC calls by setting a trace key in the metadata.
If no trace key is provided, a random one will be generated.
inherited
-
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