Function rs2_device_hub_wait_for_device

Function Documentation

rs2_device *rs2_device_hub_wait_for_device(const rs2_device_hub *hub, rs2_error **error)

If any device is connected return it, otherwise wait until next RealSense device connects. Calling this method multiple times will cycle through connected devices

Parameters:
  • ctx[in] The context to creat the device

  • hub[in] The device hub object

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored.

Returns:

device object