update SDK

This commit is contained in:
Joe Dong
2023-07-17 13:57:47 +08:00
parent 4cee459714
commit 28cea62ff7
6 changed files with 16 additions and 17 deletions
@@ -609,12 +609,15 @@ public:
std::shared_ptr<Device> getDeviceBySN(const char *serialNumber);
/**
* @brief Get the device object with the specified UID
* @brief Get the specified device object from the device list by uid
* @brief On Linux platform, the uid of the device is composed of bus-port-dev, for example 1-1.2-1. But the SDK will remove the dev number and only keep
* the bus-port as the uid to create the device, for example 1-1.2, so that we can create a device connected to the specified USB port. Similarly, users can
* also directly pass in bus-port as uid to create device.
*
* @attention If the device has already been acquired and created elsewhere, repeated acquisition will throw an exception
* @attention If the device has been acquired and created elsewhere, repeated acquisition will throw an exception
*
* @param uid the UID of the device to create
* @return std::shared_ptr<Device> the device object
* @param uid The uid of the device to be created
* @return std::shared_ptr<Device> returns the device object
*/
std::shared_ptr<Device> getDeviceByUid(const char *uid);
};