Function rs2_software_device_add_sensor

Function Documentation

rs2_sensor *rs2_software_device_add_sensor(rs2_device *dev, const char *sensor_name, rs2_error **error)

Add sensor to the software device

Parameters:
  • dev[in] the software device

  • sensor_name[in] the name of the sensor

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

Returns:

software sensor object, should be released by rs2_delete_sensor