Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to connect by specifying either GUID or IP address. #3

Merged
merged 1 commit into from
Oct 30, 2014

Conversation

pkok
Copy link
Contributor

@pkok pkok commented Oct 29, 2014

The code allows for using either a GUID or IP address to connect to a camera (lines 103 -- 118 of src/vimba_ros.cpp). However, because of the defaults given by the configuration file, IP address always has to be set after which the GUID if supplied (which is done by the configuration file) will be checked. These configuration variables do not really allow for sensible default values.

This pull request sets the default values for guid and ip_address to the empty string. By doing so, the software will look for user-specified values for these two values, and allows it when only one of the two are set. If both are set, both still have to be correct.

miquelmassot added a commit that referenced this pull request Oct 30, 2014
Allow user to connect by specifying either GUID or IP address.
@miquelmassot miquelmassot merged commit 12da131 into srv:indigo Oct 30, 2014
@miquelmassot
Copy link
Contributor

Thanks for the contribution @pkok !

vbrebion pushed a commit to vbrebion/avt_vimba_camera that referenced this pull request Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants