viam.components.power_sensor.service

Classes

PowerSensorRPCService

gRPC Service for a PowerSensor

Module Contents

class viam.components.power_sensor.service.PowerSensorRPCService(manager: viam.resource.manager.ResourceManager)[source]

Bases: viam.proto.component.powersensor.PowerSensorServiceBase, viam.resource.rpc_service_base.ResourceRPCServiceBase[viam.components.power_sensor.power_sensor.PowerSensor]

gRPC Service for a PowerSensor

RESOURCE_TYPE
async GetReadings(stream: grpclib.server.Stream[viam.proto.common.GetReadingsRequest, viam.proto.common.GetReadingsResponse]) None[source]
async GetVoltage(stream: grpclib.server.Stream[viam.proto.component.powersensor.GetVoltageRequest, viam.proto.component.powersensor.GetVoltageResponse]) None[source]
async GetCurrent(stream: grpclib.server.Stream[viam.proto.component.powersensor.GetCurrentRequest, viam.proto.component.powersensor.GetCurrentResponse]) None[source]
async GetPower(stream: grpclib.server.Stream[viam.proto.component.powersensor.GetPowerRequest, viam.proto.component.powersensor.GetPowerResponse]) None[source]
async DoCommand(stream: grpclib.server.Stream[viam.proto.common.DoCommandRequest, viam.proto.common.DoCommandResponse]) None[source]