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