+ Data *data;
+ string text;
+
+ data = get_and_collect_data();
+ if (data != NULL) {
+ text = data->to_string();
+ cout << text << endl;
+ }
+ else {
+ log_error("Could not data for %s device: %s\n", get_device_type().c_str(), get_name().c_str());
+ }
+}
+
+string W1Device::to_string(double dbl_val, int digit_count) {
+ string ret_val;
+ ostringstream out;