#include <time.h>
namespace plp {
+ /**
+ * DataReader is able to read old data from the device.
+ */
class DataReader {
public:
DataReader(std::string device_id);
DataRange *get_data(Date *start_date, Date *end_date);
std::string get_device_id();
- std::string get_device_type();
+ bool get_device_type(std::string& type_param);
Data *get_latest_data();
protected:
std::string device_id;