- enum {SENSOR_TEST0=0, SENSOR_TEST1=1} id;
- /** Buffer to store data from the sensor **/
- DataPoint buffer[SENSOR_DATABUFSIZ];
- /** Index of last point written in the data buffer **/
- int write_index;
- /** Offset position in binary file for query thread to read from**/
- int read_offset;
- /** File to write data into when buffer is full **/
- char filename[FILENAMESIZE];
- /** Thread running the sensor **/
+ SensorId id;
+ /** DataFile to store sensor values in **/
+ DataFile data_file;
+ /** Indicates whether the Sensor is active or not **/
+ bool activated;
+ /** Thread the Sensor is running in **/