Raritan PX2/PX3 JSON-RPC API
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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 
35  interface StateSensor_4_0_1 extends Sensor_4_0_1 {
36 
38  structure State {
39  time timestamp;
40  boolean available;
41  int value;
42  };
43 
44  valueobject StateChangedEvent extends idl.Event {
45  State oldState;
46  State newState;
47  };
48 
54  State getState();
55 
56  };
57 
58 }
59 
60 #endif
Sensor with discrete readings.
Definition: StateSensor.idl:35
Sensor state.
Definition: StateSensor.idl:38
Sensor interface
Definition: Sensor.idl:10
time timestamp
Timestamp of last sample.
Definition: StateSensor.idl:39
boolean available
true if the sensor is available
Definition: StateSensor.idl:40
int value
Discrete sensor value; intrepretation depends on the type of sensor.
Definition: StateSensor.idl:41