Raritan EMX JSON-RPC API
Switch.idl
1 
2 #ifndef __SENSORS_SWITCH_IDL__
3 #define __SENSORS_SWITCH_IDL__
4 
5 #include <StateSensor.idl>
6 #include <UserEvent.idl>
7 
9 module sensors {
10 
19  interface Switch_2_0_4 extends StateSensor_4_0_2 {
20  constant int ERR_INVALID_PARAMETER = 1;
21  constant int ERR_NOT_AVAILABLE = 2;
22  constant int ERR_PDC_POWER_LIMIT = 3;
23 
34  int setState(in int newState);
35 
37  valueobject SwitchEvent extends event.UserEvent {
38  int targetState;
39  };
40  };
41 
42 }
43 
44 #endif
Sensor with discrete readings.
Definition: StateSensor.idl:38
Switch is an actuator and an extension to StateSensor.
Definition: Switch.idl:19
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8