string convert_celcius_value_to_three_digits(string raw_value) {
string ret_val;
- int int_val;
bool suc_flg;
double dbl_val;
return ret_val;
}
-W1TemperatureSensor::W1TemperatureSensor(dirent *direntry,
- int family_code_param,
- string id_param): W1Device(direntry, family_code_param, id_param) {
+W1TemperatureSensor::W1TemperatureSensor(int family_code_param,
+ string device_id_param,
+ dirent *direntry_param): W1Device(family_code_param, device_id_param, direntry_param) {
+ string text;
+
log_debug("trying to open file: %s\n", slave_file.c_str());
ifstream ifs(slave_file.c_str());
if (ifs.is_open() == false) {
- string text;
-
- text = get_time() + ": device type = " + get_devicetype_name() + ", id = " + id + ", could not read file: " + slave_file + "\n";
+ text = get_time() + ": device type = " + get_device_type() + ", id = " + id + ", could not read file: " + slave_file + "\n";
log_debug(text.c_str());
log_debug("verify that you have w1_therm kernel module loaded.\n");
ifs.close();
string last_line;
int pos;
int length;
- string formatted_data;
- int int_value;
+ string format;
ret_val = "<could not read>";
ifstream ifs(slave_file.c_str());
return "C";
}
-string W1TemperatureSensor::get_devicetype_name() {
+string W1TemperatureSensor::get_device_type() {
return "Temperature Sensor";
}