question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Scanning filtering by manufacturer ID

See original GitHub issue

This is a feature request, but we recently had to abandon our use of this library due to not being able to scan filter by manufacturer ID (at least on Android, don’t know what iOS world looks like). I had added the functionality locally to the library just by passing through a manufacturerID and calling if that value was provided

                ScanFilter.Builder builder = new ScanFilter.Builder();
                builder.SetManufacturerData(manufacturerId.Value, Array.Empty<byte>() );
                ScanFilter filter = builder.Build();
                scanFilters.Add(filter);

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
januswcommented, May 7, 2021

Thanks for the suggestion. That’s a reasonable request.

Apart from filtering on Manufacturer data, it would also be good to have a way to filter on Service data. Right now one can only filter on Service UUID (by passing it directly to IAdapter.StartScanningForDevicesAsync).

Given all those different filtering options (cf. https://developer.android.com/reference/android/bluetooth/le/ScanFilter.Builder), it would be good to introduce more advanced filtering mechanisms to IAdapter.

And yes, one should also check the iOS APIs, in order to see what we can cover across platforms here.

0reactions
januswcommented, May 1, 2022

Apart from filtering on Manufacturer data, it would also be good to have a way to filter on Service data. Right now one can only filter on Service UUID (by passing it directly to IAdapter.StartScanningForDevicesAsync).

Service-data filtering was added with #588.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request: Scanning filtering by manufacturer ID · Issue #515
This is a feature request, but we recently had to abandon our use of this library due to not being able to scan...
Read more >
How to use the BLE Scanning filters on the Connection ...
In this blog, I show how to add the extra criteria filter (manufacturer specific data) and then check for particular pattern inside the ......
Read more >
How to filter on manufacturer ID when scanning for BLE ...
Hi, I want to filter BLE advertisements on manufacturer ID when scanning with nrf_ble_scan. I cannot change the advertising packet, ...
Read more >
How to filter on manufacturer data when using ...
The "manufacturerId" (aka Company Identifier) identifies the manufacturer of the BLE device and are uniquely assigned by the Bluetooth SIG. So ...
Read more >
BLE scanning filtered by manufacturer data does not work
It seems like when I register a scanning with a manufacturer filter I will not get any results. Same code works on other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found