6#ifndef __SENSORMODEL_STATESENSOR_IDL__ 
    7#define __SENSORMODEL_STATESENSOR_IDL__ 
Sensor with discrete readings.
 
State getState()
Get the sensor state.
 
Common base for all events.
 
time timestamp
UNIX timestamp (UTC) of last sample.
 
int value
Discrete sensor value; intrepretation depends on the type of sensor.
 
boolean available
true if the sensor is available