From: Mika Laitio Date: Mon, 13 Aug 2012 17:25:20 +0000 (+0300) Subject: call get_latest_data for devices found X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c687c0718b5de2408f4aa31376ce4737bfb35fc3;p=nws-w1.git call get_latest_data for devices found Signed-off-by: Mika Laitio --- diff --git a/src_client/NetworkServiceClient_W1.cc b/src_client/NetworkServiceClient_W1.cc index bed3a98..8515ac7 100644 --- a/src_client/NetworkServiceClient_W1.cc +++ b/src_client/NetworkServiceClient_W1.cc @@ -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 {