Function rs2_device_hub_is_device_connected

Function Documentation

int rs2_device_hub_is_device_connected(const rs2_device_hub *hub, const rs2_device *device, rs2_error **error)

Checks if device is still connected

Parameters:
  • hub[in] The device hub object

  • device[in] The device

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

Returns:

1 if the device is connected, 0 otherwise