Add parameter to control BlueZ data duplication while scanning #82
+19
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds the option to control BlueZ's data duplication according to https://github.com/bluez/bluez/blob/4465c577778d812702d752dfd2812e25a2f69b31/doc/org.bluez.Adapter.rst?plain=1#L128
While de-duplication seems to be off on a few distributions, it is on on others, essentially making continous monitoring of advertised data impossible. Also, since the offizial BlueZ documentation regarded
true
to be the default for duplicate data, I set this option totrue
as default for node-ble as well in order to preserve what I believe was the intended default operation until this point.Related to this, documentation on DuplicateData was outdated and has now been changed: bluez/bluez#1113
I also updated the API documentation and TypeScript typings accordingly.