Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
Sensor interface More...
Classes | |
struct | TypeSpec |
Complete sensor type specification. More... | |
struct | TypeSpecChangedEvent |
Event: The type specification of the sensor changed. More... | |
Public Types | |
enum | OnOffState { OFF , ON } |
Sensor states for DISCRETE_ON_OFF sensors. More... | |
enum | OpenClosedState { OPEN , CLOSED } |
enum | NormalAlarmedState { NORMAL , ALARMED } |
enum | OkFaultState { OK , FAULT } |
Public Member Functions | |
TypeSpec | getTypeSpec () |
Retrieve the sensor type specification. More... | |
boolean | isTypeChangeAllowed () |
Check whether the sensor type can be changed using setType(). More... | |
int | setType (in int type, in int unit) |
Set sensor type and unit. More... | |
Public Attributes | |
constant int | ERR_NOT_SUPPORTED = 1 |
The operation is not supported. More... | |
constant int | NUMERIC = 0 |
Sensor reading type More... | |
constant int | DISCRETE_ON_OFF = 1 |
constant int | DISCRETE_MULTI = 2 |
constant int | UNSPECIFIED = 0 |
Sensor type More... | |
constant int | VOLTAGE = 1 |
constant int | CURRENT = 2 |
constant int | UNBALANCE_CURRENT = 3 |
constant int | POWER = 4 |
constant int | POWER_FACTOR = 5 |
constant int | ENERGY = 6 |
constant int | FREQUENCY = 7 |
constant int | TEMPERATURE = 8 |
constant int | HUMIDITY = 9 |
constant int | AIR_FLOW = 10 |
constant int | AIR_PRESSURE = 11 |
constant int | CONTACT_CLOSURE = 12 |
constant int | ON_OFF_SENSOR = 13 |
constant int | TRIP_SENSOR = 14 |
constant int | VIBRATION = 15 |
constant int | WATER_LEAK = 16 |
constant int | SMOKE_DETECTOR = 17 |
constant int | TOTAL_HARMONIC_DISTORTION = 18 |
constant int | MASS = 19 |
constant int | ELECTRICAL_RESISTANCE = 20 |
constant int | FLUX = 21 |
constant int | LUMINOUS_INTENSITY = 22 |
constant int | ACCELERATION = 23 |
constant int | MAGNETIC_FLUX_DENSITY = 24 |
constant int | ELECTRIC_FIELD_STRENGTH = 25 |
constant int | MAGNETIC_FIELD_STRENGTH = 26 |
constant int | ANGLE = 27 |
constant int | SELECTION = 28 |
constant int | FAULT_STATE = 29 |
constant int | POWER_QUALITY = 30 |
constant int | ROTATIONAL_SPEED = 31 |
constant int | LUMINOUS_ENERGY = 32 |
constant int | LUMINOUS_FLUX = 33 |
constant int | ILLUMINANCE = 34 |
constant int | LUMINOUS_EMITTANCE = 35 |
constant int | MOTION = 36 |
constant int | OCCUPANCY = 37 |
constant int | TAMPER = 38 |
constant int | DRY_CONTACT = 39 |
constant int | POWERED_DRY_CONTACT = 40 |
constant int | ABSOLUTE_HUMIDITY = 41 |
constant int | DOOR_STATE = 42 |
constant int | DOOR_LOCK_STATE = 43 |
constant int | DOOR_HANDLE_LOCK = 44 |
constant int | CREST_FACTOR = 45 |
constant int | DISTANCE = 46 |
constant int | LENGTH = 47 |
constant int | UNBALANCE_VOLTAGE = 48 |
constant int | PARTICLE_DENSITY = 49 |
constant int | DEW_POINT = 50 |
constant int | ELECTRICAL_IMPEDANCE = 51 |
constant int | TS_BYPASS_STATE = 52 |
constant int | BATTERY_LEVEL = 53 |
constant int | NONE = 0 |
Sensor unit More... | |
constant int | VOLT = 1 |
constant int | AMPERE = 2 |
constant int | WATT = 3 |
constant int | VOLT_AMP = 4 |
constant int | WATT_HOUR = 5 |
constant int | VOLT_AMP_HOUR = 6 |
constant int | DEGREE_CELSIUS = 7 |
constant int | HZ = 8 |
constant int | PERCENT = 9 |
constant int | METER_PER_SEC = 10 |
constant int | PASCAL = 11 |
constant int | G = 12 |
constant int | RPM = 13 |
constant int | METER = 14 |
constant int | HOUR = 15 |
constant int | MINUTE = 16 |
constant int | SECOND = 17 |
constant int | VOLT_AMP_REACTIVE = 18 |
constant int | VOLT_AMP_REACTIVE_HOUR = 19 |
constant int | GRAM = 20 |
constant int | OHM = 21 |
constant int | LITERS_PER_HOUR = 22 |
constant int | CANDELA = 23 |
constant int | METER_PER_SQUARE_SEC = 24 |
constant int | METER_PER_SQARE_SEC = 24 |
constant int | TESLA = 25 |
constant int | VOLT_PER_METER = 26 |
constant int | VOLT_PER_AMPERE = 27 |
constant int | DEGREE = 28 |
constant int | DEGREE_FAHRENHEIT = 29 |
constant int | KELVIN = 30 |
constant int | JOULE = 31 |
constant int | COULOMB = 32 |
constant int | NIT = 33 |
constant int | LUMEN = 34 |
constant int | LUMEN_SECOND = 35 |
constant int | LUX = 36 |
constant int | PSI = 37 |
constant int | NEWTON = 38 |
constant int | FOOT = 39 |
constant int | FOOT_PER_SEC = 40 |
constant int | CUBIC_METER = 41 |
constant int | RADIANT = 42 |
constant int | STERADIANT = 43 |
constant int | HENRY = 44 |
constant int | FARAD = 45 |
constant int | MOL = 46 |
constant int | BECQUEREL = 47 |
constant int | GRAY = 48 |
constant int | SIEVERT = 49 |
constant int | G_PER_CUBIC_METER = 50 |
constant int | UG_PER_CUBIC_METER = 51 |
Sensor interface
Definition at line 15 of file Sensor.idl.
Enumerator | |
---|---|
NORMAL | normal (not alarmed) |
ALARMED | alarmed |
Definition at line 35 of file Sensor.idl.
Enumerator | |
---|---|
OK | OK. |
FAULT | fault |
Definition at line 40 of file Sensor.idl.
Sensor states for DISCRETE_ON_OFF sensors.
Enumerator | |
---|---|
OFF | off |
ON | on |
Definition at line 25 of file Sensor.idl.
Enumerator | |
---|---|
OPEN | open |
CLOSED | closed |
Definition at line 30 of file Sensor.idl.
TypeSpec sensors::Sensor::getTypeSpec | ( | ) |
Retrieve the sensor type specification.
boolean sensors::Sensor::isTypeChangeAllowed | ( | ) |
Check whether the sensor type can be changed using setType().
int sensors::Sensor::setType | ( | in int | type, |
in int | unit | ||
) |
Set sensor type and unit.
type | the sensor type to set |
unit | the sensor unit to set |
constant int sensors::Sensor::ABSOLUTE_HUMIDITY = 41 |
Definition at line 95 of file Sensor.idl.
constant int sensors::Sensor::ACCELERATION = 23 |
Definition at line 73 of file Sensor.idl.
constant int sensors::Sensor::AIR_FLOW = 10 |
Definition at line 57 of file Sensor.idl.
constant int sensors::Sensor::AIR_PRESSURE = 11 |
Definition at line 58 of file Sensor.idl.
constant int sensors::Sensor::AMPERE = 2 |
Definition at line 120 of file Sensor.idl.
constant int sensors::Sensor::ANGLE = 27 |
Definition at line 77 of file Sensor.idl.
constant int sensors::Sensor::BATTERY_LEVEL = 53 |
Definition at line 115 of file Sensor.idl.
constant int sensors::Sensor::BECQUEREL = 47 |
Definition at line 170 of file Sensor.idl.
constant int sensors::Sensor::CANDELA = 23 |
Definition at line 144 of file Sensor.idl.
constant int sensors::Sensor::CONTACT_CLOSURE = 12 |
Definition at line 59 of file Sensor.idl.
constant int sensors::Sensor::COULOMB = 32 |
Definition at line 155 of file Sensor.idl.
constant int sensors::Sensor::CREST_FACTOR = 45 |
Definition at line 100 of file Sensor.idl.
constant int sensors::Sensor::CUBIC_METER = 41 |
Definition at line 164 of file Sensor.idl.
constant int sensors::Sensor::CURRENT = 2 |
Definition at line 49 of file Sensor.idl.
constant int sensors::Sensor::DEGREE = 28 |
Definition at line 150 of file Sensor.idl.
constant int sensors::Sensor::DEGREE_CELSIUS = 7 |
Definition at line 125 of file Sensor.idl.
constant int sensors::Sensor::DEGREE_FAHRENHEIT = 29 |
Definition at line 152 of file Sensor.idl.
constant int sensors::Sensor::DEW_POINT = 50 |
Definition at line 109 of file Sensor.idl.
constant int sensors::Sensor::DISCRETE_MULTI = 2 |
Definition at line 22 of file Sensor.idl.
constant int sensors::Sensor::DISCRETE_ON_OFF = 1 |
Definition at line 21 of file Sensor.idl.
constant int sensors::Sensor::DISTANCE = 46 |
Definition at line 102 of file Sensor.idl.
constant int sensors::Sensor::DOOR_HANDLE_LOCK = 44 |
Definition at line 98 of file Sensor.idl.
constant int sensors::Sensor::DOOR_LOCK_STATE = 43 |
Definition at line 97 of file Sensor.idl.
constant int sensors::Sensor::DOOR_STATE = 42 |
Definition at line 96 of file Sensor.idl.
constant int sensors::Sensor::DRY_CONTACT = 39 |
Definition at line 92 of file Sensor.idl.
constant int sensors::Sensor::ELECTRIC_FIELD_STRENGTH = 25 |
Definition at line 75 of file Sensor.idl.
constant int sensors::Sensor::ELECTRICAL_IMPEDANCE = 51 |
Definition at line 111 of file Sensor.idl.
constant int sensors::Sensor::ELECTRICAL_RESISTANCE = 20 |
Definition at line 69 of file Sensor.idl.
constant int sensors::Sensor::ENERGY = 6 |
Definition at line 53 of file Sensor.idl.
constant int sensors::Sensor::ERR_NOT_SUPPORTED = 1 |
The operation is not supported.
Definition at line 17 of file Sensor.idl.
constant int sensors::Sensor::FARAD = 45 |
Definition at line 168 of file Sensor.idl.
constant int sensors::Sensor::FAULT_STATE = 29 |
Definition at line 80 of file Sensor.idl.
constant int sensors::Sensor::FLUX = 21 |
Definition at line 70 of file Sensor.idl.
constant int sensors::Sensor::FOOT = 39 |
Definition at line 162 of file Sensor.idl.
constant int sensors::Sensor::FOOT_PER_SEC = 40 |
Definition at line 163 of file Sensor.idl.
constant int sensors::Sensor::FREQUENCY = 7 |
Definition at line 54 of file Sensor.idl.
constant int sensors::Sensor::G = 12 |
Definition at line 130 of file Sensor.idl.
constant int sensors::Sensor::G_PER_CUBIC_METER = 50 |
Definition at line 173 of file Sensor.idl.
constant int sensors::Sensor::GRAM = 20 |
Definition at line 140 of file Sensor.idl.
constant int sensors::Sensor::GRAY = 48 |
Definition at line 171 of file Sensor.idl.
constant int sensors::Sensor::HENRY = 44 |
Definition at line 167 of file Sensor.idl.
constant int sensors::Sensor::HOUR = 15 |
Definition at line 133 of file Sensor.idl.
constant int sensors::Sensor::HUMIDITY = 9 |
Definition at line 56 of file Sensor.idl.
constant int sensors::Sensor::HZ = 8 |
Definition at line 126 of file Sensor.idl.
constant int sensors::Sensor::ILLUMINANCE = 34 |
Definition at line 86 of file Sensor.idl.
constant int sensors::Sensor::JOULE = 31 |
Definition at line 154 of file Sensor.idl.
constant int sensors::Sensor::KELVIN = 30 |
Definition at line 153 of file Sensor.idl.
constant int sensors::Sensor::LENGTH = 47 |
Definition at line 103 of file Sensor.idl.
constant int sensors::Sensor::LITERS_PER_HOUR = 22 |
Definition at line 142 of file Sensor.idl.
constant int sensors::Sensor::LUMEN = 34 |
Definition at line 157 of file Sensor.idl.
constant int sensors::Sensor::LUMEN_SECOND = 35 |
Definition at line 158 of file Sensor.idl.
constant int sensors::Sensor::LUMINOUS_EMITTANCE = 35 |
Definition at line 87 of file Sensor.idl.
constant int sensors::Sensor::LUMINOUS_ENERGY = 32 |
Definition at line 84 of file Sensor.idl.
constant int sensors::Sensor::LUMINOUS_FLUX = 33 |
Definition at line 85 of file Sensor.idl.
constant int sensors::Sensor::LUMINOUS_INTENSITY = 22 |
Definition at line 72 of file Sensor.idl.
constant int sensors::Sensor::LUX = 36 |
Definition at line 159 of file Sensor.idl.
constant int sensors::Sensor::MAGNETIC_FIELD_STRENGTH = 26 |
Definition at line 76 of file Sensor.idl.
constant int sensors::Sensor::MAGNETIC_FLUX_DENSITY = 24 |
Definition at line 74 of file Sensor.idl.
constant int sensors::Sensor::MASS = 19 |
Definition at line 68 of file Sensor.idl.
constant int sensors::Sensor::METER = 14 |
Definition at line 132 of file Sensor.idl.
constant int sensors::Sensor::METER_PER_SEC = 10 |
Definition at line 128 of file Sensor.idl.
constant int sensors::Sensor::METER_PER_SQARE_SEC = 24 |
Definition at line 146 of file Sensor.idl.
constant int sensors::Sensor::METER_PER_SQUARE_SEC = 24 |
Definition at line 145 of file Sensor.idl.
constant int sensors::Sensor::MINUTE = 16 |
Definition at line 134 of file Sensor.idl.
constant int sensors::Sensor::MOL = 46 |
Definition at line 169 of file Sensor.idl.
constant int sensors::Sensor::MOTION = 36 |
Definition at line 89 of file Sensor.idl.
constant int sensors::Sensor::NEWTON = 38 |
Definition at line 161 of file Sensor.idl.
constant int sensors::Sensor::NIT = 33 |
Definition at line 156 of file Sensor.idl.
constant int sensors::Sensor::NONE = 0 |
Sensor unit
Definition at line 118 of file Sensor.idl.
constant int sensors::Sensor::NUMERIC = 0 |
Sensor reading type
Definition at line 20 of file Sensor.idl.
constant int sensors::Sensor::OCCUPANCY = 37 |
Definition at line 90 of file Sensor.idl.
constant int sensors::Sensor::OHM = 21 |
Definition at line 141 of file Sensor.idl.
constant int sensors::Sensor::ON_OFF_SENSOR = 13 |
Definition at line 60 of file Sensor.idl.
constant int sensors::Sensor::PARTICLE_DENSITY = 49 |
Definition at line 107 of file Sensor.idl.
constant int sensors::Sensor::PASCAL = 11 |
Definition at line 129 of file Sensor.idl.
constant int sensors::Sensor::PERCENT = 9 |
Definition at line 127 of file Sensor.idl.
constant int sensors::Sensor::POWER = 4 |
Definition at line 51 of file Sensor.idl.
constant int sensors::Sensor::POWER_FACTOR = 5 |
Definition at line 52 of file Sensor.idl.
constant int sensors::Sensor::POWER_QUALITY = 30 |
Definition at line 81 of file Sensor.idl.
constant int sensors::Sensor::POWERED_DRY_CONTACT = 40 |
Definition at line 93 of file Sensor.idl.
constant int sensors::Sensor::PSI = 37 |
Definition at line 160 of file Sensor.idl.
constant int sensors::Sensor::RADIANT = 42 |
Definition at line 165 of file Sensor.idl.
constant int sensors::Sensor::ROTATIONAL_SPEED = 31 |
Definition at line 82 of file Sensor.idl.
constant int sensors::Sensor::RPM = 13 |
Definition at line 131 of file Sensor.idl.
constant int sensors::Sensor::SECOND = 17 |
Definition at line 135 of file Sensor.idl.
constant int sensors::Sensor::SELECTION = 28 |
Definition at line 79 of file Sensor.idl.
constant int sensors::Sensor::SIEVERT = 49 |
Definition at line 172 of file Sensor.idl.
constant int sensors::Sensor::SMOKE_DETECTOR = 17 |
Definition at line 64 of file Sensor.idl.
constant int sensors::Sensor::STERADIANT = 43 |
Definition at line 166 of file Sensor.idl.
constant int sensors::Sensor::TAMPER = 38 |
Definition at line 91 of file Sensor.idl.
constant int sensors::Sensor::TEMPERATURE = 8 |
Definition at line 55 of file Sensor.idl.
constant int sensors::Sensor::TESLA = 25 |
Definition at line 147 of file Sensor.idl.
constant int sensors::Sensor::TOTAL_HARMONIC_DISTORTION = 18 |
Definition at line 66 of file Sensor.idl.
constant int sensors::Sensor::TRIP_SENSOR = 14 |
Definition at line 61 of file Sensor.idl.
constant int sensors::Sensor::TS_BYPASS_STATE = 52 |
Definition at line 113 of file Sensor.idl.
constant int sensors::Sensor::UG_PER_CUBIC_METER = 51 |
Definition at line 174 of file Sensor.idl.
constant int sensors::Sensor::UNBALANCE_CURRENT = 3 |
Definition at line 50 of file Sensor.idl.
constant int sensors::Sensor::UNBALANCE_VOLTAGE = 48 |
Definition at line 105 of file Sensor.idl.
constant int sensors::Sensor::UNSPECIFIED = 0 |
Sensor type
Definition at line 46 of file Sensor.idl.
constant int sensors::Sensor::VIBRATION = 15 |
Definition at line 62 of file Sensor.idl.
constant int sensors::Sensor::VOLT = 1 |
Definition at line 119 of file Sensor.idl.
constant int sensors::Sensor::VOLT_AMP = 4 |
Definition at line 122 of file Sensor.idl.
constant int sensors::Sensor::VOLT_AMP_HOUR = 6 |
Definition at line 124 of file Sensor.idl.
constant int sensors::Sensor::VOLT_AMP_REACTIVE = 18 |
Definition at line 137 of file Sensor.idl.
constant int sensors::Sensor::VOLT_AMP_REACTIVE_HOUR = 19 |
Definition at line 138 of file Sensor.idl.
constant int sensors::Sensor::VOLT_PER_AMPERE = 27 |
Definition at line 149 of file Sensor.idl.
constant int sensors::Sensor::VOLT_PER_METER = 26 |
Definition at line 148 of file Sensor.idl.
constant int sensors::Sensor::VOLTAGE = 1 |
Definition at line 48 of file Sensor.idl.
constant int sensors::Sensor::WATER_LEAK = 16 |
Definition at line 63 of file Sensor.idl.
constant int sensors::Sensor::WATT = 3 |
Definition at line 121 of file Sensor.idl.
constant int sensors::Sensor::WATT_HOUR = 5 |
Definition at line 123 of file Sensor.idl.