Skip to content

Comments

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

Open
bl0ggy wants to merge 1 commit intoagsh:masterfrom
bl0ggy:bind_local_address
Open

Add the possibility to bind an address on Discovery instead of a device#139
bl0ggy wants to merge 1 commit intoagsh:masterfrom
bl0ggy:bind_local_address

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.

@RogerHardiman
Copy link
Collaborator

Hi. I cherry picked the bindAddress from this PR today.
Thanks, Roger

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.

3 participants