Class device_hub

Class Documentation

class device_hub

device_hub class - encapsulate the handling of connect and disconnect events

Public Functions

inline explicit device_hub(context ctx)
inline device wait_for_device() const

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

inline bool is_connected(const device &dev) const

Checks if device is still connected

inline explicit operator std::shared_ptr<rs2_device_hub>()
inline explicit device_hub(std::shared_ptr<rs2_device_hub> hub)