Viam C++ SDK current
|
gRPC client implementation of a PowerSensor
component.
More...
#include <power_sensor_client.hpp>
Public Types | |
using | interface_type = PowerSensor |
Public Member Functions | |
PowerSensorClient (std::string name, std::shared_ptr< grpc::Channel > channel) | |
voltage | get_voltage (const ProtoStruct &extra) override |
Returns the voltage reading of this sensor. | |
current | get_current (const ProtoStruct &extra) override |
Returns the current reading of this sensor. | |
double | get_power (const ProtoStruct &extra) override |
Returns the power reading of this sensor. | |
ProtoStruct | get_readings (const ProtoStruct &extra) override |
Returns the measurements/data specific to this sensor. | |
ProtoStruct | do_command (const ProtoStruct &command) override |
Send/receive arbitrary commands to the resource. | |
current | get_current () |
Returns the current reading of this sensor. | |
virtual current | get_current (const ProtoStruct &extra)=0 |
Returns the current reading of this sensor. | |
double | get_power () |
Returns the power reading of this sensor. | |
virtual double | get_power (const ProtoStruct &extra)=0 |
Returns the power reading of this sensor. | |
ProtoStruct | get_readings () |
Returns the measurements/data specific to this sensor. | |
virtual ProtoStruct | get_readings (const ProtoStruct &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 ProtoStruct &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. | |
ProtoStruct | get_readings () |
Returns the measurements/data specific to this sensor. | |
![]() | |
Name | get_resource_name () const override |
Returns the Name for a particular resource. | |
![]() | |
Resource (std::string name) | |
virtual std::string | name () const |
Return the resource's name. | |
void | set_log_level (log_level) const |
Set the log level for log messages originating from this Resource. | |
Additional Inherited Members | |
![]() | |
PowerSensor (std::string name) | |
![]() | |
Component (std::string name) | |
![]() | |
Name | get_resource_name (const std::string &type) const |
![]() | |
LogSource | logger_ |
gRPC client implementation of a PowerSensor
component.
|
overridevirtual |
Send/receive arbitrary commands to the resource.
Command | the command to execute. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the current reading of this sensor.
|
overridevirtual |
Returns the current reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the current reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the power reading of this sensor.
|
overridevirtual |
Returns the power reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the power reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the measurements/data specific to this sensor.
|
overridevirtual |
Returns the measurements/data specific to this sensor.
extra | Any additional arguments to the method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the measurements/data specific to this sensor.
extra | Any additional arguments to the method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the voltage reading of this sensor.
|
overridevirtual |
Returns the voltage reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the voltage reading of this sensor.
extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.