Viam C++ SDK current
|
gRPC server implementation of a PowerSensor
component.
More...
#include <power_sensor_server.hpp>
Public Types | |
using | interface_type = PowerSensor |
using | service_type = PowerSensorService |
Public Member Functions | |
PowerSensorServer (std::shared_ptr< ResourceManager > manager) | |
::grpc::Status | GetVoltage (::grpc::ServerContext *context, const GetVoltageRequest *request, GetVoltageResponse *response) noexcept override |
::grpc::Status | GetCurrent (::grpc::ServerContext *context, const GetCurrentRequest *request, GetCurrentResponse *response) noexcept override |
::grpc::Status | GetPower (::grpc::ServerContext *context, const GetPowerRequest *request, GetPowerResponse *response) noexcept override |
::grpc::Status | GetReadings (::grpc::ServerContext *context, const viam::common::v1::GetReadingsRequest *request, viam::common::v1::GetReadingsResponse *response) noexcept override |
::grpc::Status | DoCommand (::grpc::ServerContext *context, const viam::common::v1::DoCommandRequest *request, viam::common::v1::DoCommandResponse *response) noexcept override |
Public Member Functions inherited from viam::sdk::ResourceServer | |
const std::shared_ptr< ResourceManager > & | resource_manager () const |
Additional Inherited Members | |
Protected Member Functions inherited from viam::sdk::ResourceServer | |
ResourceServer (std::shared_ptr< ResourceManager > manager) | |
gRPC server implementation of a PowerSensor
component.