mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 03:57:46 +08:00
Update OrbbecSDK version to 2.5.3 and bump version to 2.5.3
This commit is contained in:
@@ -64,14 +64,18 @@ OB_EXPORT ob_device_list *ob_query_device_list(ob_context *context, ob_error **e
|
||||
OB_EXPORT void ob_enable_net_device_enumeration(ob_context *context, bool enable, ob_error **error);
|
||||
|
||||
/**
|
||||
* @brief Changes the IP configuration of a network device.
|
||||
* @brief "Force" a static IP address configuration in a device identified by its MAC Address.
|
||||
*
|
||||
* @param[in] deviceUid The unique device ID (MAC address). obtained via @ref ob_device_info_get_uid.
|
||||
* @param[in] config The new IP configuration to apply.
|
||||
* @param[in] macAddress MAC address of the network device.
|
||||
* You can obtain it from @ref DeviceList::uid(), or specify it manually
|
||||
* in the format xx:xx:xx:xx:xx:xx, where each xx is a two-digit hexadecimal value.
|
||||
* @param[in] config The new IP configuration.
|
||||
* @param[out] error Pointer to an error object that will be populated if an error occurs.
|
||||
* @return bool true if the configuration command was processed successfully, false otherwise.
|
||||
*
|
||||
* @note This applies to all Orbbec GigE Vision devices
|
||||
*/
|
||||
OB_EXPORT bool ob_change_net_device_ip_config(const char *deviceUid, ob_net_ip_config config, ob_error **error);
|
||||
OB_EXPORT bool ob_force_ip_config(const char *deviceUid, ob_net_ip_config config, ob_error **error);
|
||||
|
||||
/**
|
||||
* @brief Create a network device object
|
||||
|
||||
@@ -98,15 +98,19 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Changes the IP configuration of a network device.
|
||||
* @brief "Force" a static IP address configuration in a device identified by its MAC Address.
|
||||
*
|
||||
* @param[in] deviceUid The device unique ID, which is the network device MAC address. It can be obtained through the @ref DeviceList::uid() function.
|
||||
* @param[in] macAddress MAC address of the network device.
|
||||
* You can obtain it from @ref DeviceList::uid(), or specify it manually
|
||||
* in the format xx:xx:xx:xx:xx:xx, where each xx is a two-digit hexadecimal value.
|
||||
* @param[in] config The new IP configuration.
|
||||
* @return bool true if the configuration command was processed successfully, false otherwise.
|
||||
*
|
||||
* @note This applies to all Orbbec GigE Vision devices
|
||||
*/
|
||||
bool changeNetDeviceIpConfig(const char *deviceUid, const OBNetIpConfig &config) {
|
||||
bool forceIp(const char *macAddress, const OBNetIpConfig &config) {
|
||||
ob_error *error = nullptr;
|
||||
auto res = ob_change_net_device_ip_config(deviceUid, config, &error);
|
||||
auto res = ob_force_ip_config(macAddress, config, &error);
|
||||
Error::handle(&error);
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user