* Author: lamikr
*/
#include <fstream>
-#include <vector>
#include <iostream>
#include <sstream>
#include <iomanip>
if (ifs.is_open() == false) {
string text;
- text = get_time() + ": device type = temperature sensor, id = " + id + ", could not read file: " + slave_file;
+ text = get_time() + ": device type = " + get_devicetype_name() + ", id = " + id + ", could not read file: " + slave_file;
cout << text << endl;
- cout << "verify that you have w1_therm kernel module loaded" << endl;
+ cout << "verify that you have w1_therm kernel module loaded." << endl;
}
else {
ifs.close();
}
string W1TemperatureSensor::get_value() {
- vector<string> text_file;
string temp;
string ret_val;
string last_line;
}
}
}
- ret_val = convert_for_3_digits_value(ret_val);
- formatted_data = get_formatted_data(ret_val);
- add_to_memory_cache(formatted_data);
+ ret_val = convert_for_3_digits_value(ret_val);
return ret_val;
}