- /** Buffer to store data from the sensor **/
- DataPoint buffer[SENSOR_DATABUFSIZ];
- /** Index of last point written in the data buffer **/
- int write_index;
- /** Number of points read **/
- long points_read;
- /** Number of points written to file **/
- long points_written;
- /** Binary file to write data into when buffer is full **/
- FILE * file;
- /** Number of data points stored in file **/
- long points_stored;
- /** Thread running the sensor **/
+ /** 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 **/