Raritan PX2/PX3 JSON-RPC API
StateSensor.idl
1 #ifndef __SENSORMODEL_STATESENSOR_IDL__
2 #define __SENSORMODEL_STATESENSOR_IDL__
3 
4 #include <Event.idl>
5 #include <Sensor.idl>
6 
8 module sensors {
9 
38  interface StateSensor_4_0_2 extends Sensor_4_0_2 {
39 
41  structure State {
42  time timestamp;
43  boolean available;
44  int value;
45  };
46 
47  valueobject StateChangedEvent extends idl.Event {
48  State oldState;
49  State newState;
50  };
51 
57  State getState();
58 
59  };
60 
61 }
62 
63 #endif
Sensor with discrete readings.
Definition: StateSensor.idl:38
int value
Discrete sensor value; intrepretation depends on the type of sensor.
Definition: StateSensor.idl:44
Sensor state.
Definition: StateSensor.idl:41
boolean available
true if the sensor is available
Definition: StateSensor.idl:43
Basic IDL definitions.
Definition: Event.idl:6
Sensor interface
Definition: Sensor.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
time timestamp
Timestamp of last sample.
Definition: StateSensor.idl:42