Function rs2_config_enable_device
Defined in File rs_config.h
Function Documentation
-
void rs2_config_enable_device(rs2_config *config, const char *serial, rs2_error **error)
Select a specific device explicitly by its serial number, to be used by the pipeline. The conditions and behavior of this method are similar to those of
enable_stream()
. This method is required if the application needs to set device or sensor settings prior to pipeline streaming, to enforce the pipeline to use the configured device.- Parameters:
config – [in] A pointer to an instance of a config
serial – [in] device serial number, as returned by RS2_CAMERA_INFO_SERIAL_NUMBER
error – [out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored