]> pilppa.com Git - nws-w1.git/commitdiff
call get_latest_data for devices found
authorMika Laitio <lamikr@pilppa.org>
Mon, 13 Aug 2012 17:25:20 +0000 (20:25 +0300)
committerMika Laitio <lamikr@pilppa.org>
Mon, 13 Aug 2012 17:25:20 +0000 (20:25 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src_client/NetworkServiceClient_W1.cc

index bed3a989e78d8c120369c389795bb825c2990a4b..8515ac7400e82cd010f8d37c080fdf035b811efe 100644 (file)
@@ -38,6 +38,14 @@ int main(int argc, char** argv)
                                        device  = (Device *)*dev_iter;
                                        id      = device->get_id();
                                        device->printout();
+                                       log_info("id: %s\n", id.c_str());
+                                       controller->get_latest_data(id, &err_flg);
+                                       if (err_flg == PLP_OK) {
+                                               log_info("latest data:\n");
+                                       }
+                                       else {
+                                               log_error("Could not get latest data for device id: %s\n", id.c_str());
+                                       }
                                }
                        }
                        else {