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

Add the possibility to bind an address on Discovery instead of a device #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bl0ggy
Copy link
Contributor

@bl0ggy bl0ggy commented Feb 20, 2020

Add the possibility to bind an address on Discovery instead of a device, in case a device has multiple aliases.
Because of address binding we need to know which alias received the camera, so we now send a remote and a local info in Discovery.emit('device'). This breaks backward compatibility though

The urn has been remvoved from the Cam constructor in a previous while it is set in discovery.js
The urn is important to compare cameras, so I added it back.

…ce, in case a device has multiple aliases.

Because of binding and because the urn is set in discovery.js, urn is important so...
Add line 'this.urn = options.urn' removed on a previous commit.
Because of binding, we need to know which alias received the camera, so we now send a remote and local info in Discovery.emit('device').
@bl0ggy bl0ggy changed the title Add the possibility to bind an address on Discovery instead of a devi… Add the possibility to bind an address on Discovery instead of a device Feb 20, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 87.259% when pulling 256e82f on bl0ggy:bind_local_address into 2a7f9fe on agsh:master.

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