|
| PowerSensorClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
|
voltage | get_voltage (const AttributeMap &extra) override |
| Returns the voltage reading of this sensor.
|
|
current | get_current (const AttributeMap &extra) override |
| Returns the current reading of this sensor.
|
|
double | get_power (const AttributeMap &extra) override |
| Returns the power reading of this sensor.
|
|
AttributeMap | get_readings (const AttributeMap &extra) override |
| Returns the measurements/data specific to this sensor.
|
|
AttributeMap | do_command (const AttributeMap &command) override |
| Send/receive arbitrary commands to the resource.
|
|
current | get_current () |
| Returns the current reading of this sensor.
|
|
virtual current | get_current (const AttributeMap &extra)=0 |
| Returns the current reading of this sensor.
|
|
double | get_power () |
| Returns the power reading of this sensor.
|
|
virtual double | get_power (const AttributeMap &extra)=0 |
| Returns the power reading of this sensor.
|
|
AttributeMap | get_readings () |
| Returns the measurements/data specific to this sensor.
|
|
virtual AttributeMap | get_readings (const AttributeMap &extra)=0 |
| Returns the measurements/data specific to this sensor.
|
|
voltage | get_voltage () |
| Returns the voltage reading of this sensor.
|
|
virtual voltage | get_voltage (const AttributeMap &extra)=0 |
| Returns the voltage reading of this sensor.
|
|
API | api () const override |
| Returns the API associated with a particular resource.
|
|
voltage | get_voltage () |
| Returns the voltage reading of this sensor.
|
|
current | get_current () |
| Returns the current reading of this sensor.
|
|
double | get_power () |
| Returns the power reading of this sensor.
|
|
AttributeMap | get_readings () |
| Returns the measurements/data specific to this sensor.
|
|
viam::common::v1::ResourceName | get_resource_name (std::string name) const override |
| Returns a ResourceName for a particular resource name.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
|
static voltage | from_proto (const GetVoltageResponse &proto) |
| Creates a voltage struct from its proto representation.
|
|
static current | from_proto (const GetCurrentResponse &proto) |
| Creates a current struct from its proto representation.
|
|
static GetVoltageResponse | to_proto (const voltage &v) |
| Converts a voltage struct to its proto representation.
|
|
static GetCurrentResponse | to_proto (const current &c) |
| Converts a current struct to its proto representation.
|
|
| PowerSensor (std::string name) |
|
| Component (std::string name) |
|
gRPC client implementation of a PowerSensor
component.