Add get_all_device_info sample

This commit is contained in:
John Zhao
2018-06-14 09:38:38 +08:00
parent d3a67b7d29
commit 1c1503aae2
3 changed files with 55 additions and 2 deletions

View File

@@ -36,8 +36,9 @@ std::shared_ptr<Device> select() {
LOG(INFO) << "MYNT EYE devices:";
for (size_t i = 0; i < n; i++) {
auto &&device = devices[i];
auto &&name = device->GetInfo(Info::DEVICE_NAME);
LOG(INFO) << " index: " << i << ", name: " << name;
LOG(INFO) << " index: " << i
<< ", name: " << device->GetInfo(Info::DEVICE_NAME)
<< ", sn: " << device->GetInfo(Info::SERIAL_NUMBER);
}
std::shared_ptr<Device> device = nullptr;