Class SensorRPCClient


public class SensorRPCClient extends Sensor
  • Constructor Details

    • SensorRPCClient

      public SensorRPCClient(String name, Channel chan)
  • Method Details

    • doCommand

      public com.google.protobuf.Struct doCommand(Map<String,com.google.protobuf.Value> command)
      Description copied from class: Resource
      Send/Receive arbitrary commands to the Resource
      Overrides:
      doCommand in class Resource
      Parameters:
      command - the command to execute
      Returns:
      result of the executed command
    • getReadings

      public Common.GetReadingsResponse getReadings(Optional<com.google.protobuf.Struct> extra)
      Specified by:
      getReadings in class Sensor