#include "BoostLog.h" #include "DeviceDiscovery.h" #include BOOST_AUTO_TEST_CASE(EnumDevice) { std::error_code error; DeviceDiscovery discovery; auto device = discovery.find("UVC Camera", error); auto devices = discovery.devices(); for (int i = 0; i < devices.size(); i++) { LOG(info) << "device[" << i << "] " << devices.at(i).friendlyName; } discovery.enterOtaMode(device, error); }