You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filtering service uuids in parameters for startScanning() is not reliable. #18
It looks like it works when the array only contains one item?
This might be miscoded. Instead of matching any of the service uuids, it might be trying to match only advertisements which contain ALL of them. I do not have a device that broadcasts moret than 1 service uuid, so unable to confirm.
Regardless it does not work with more than one service uuid. noble_uwp and other bindings do.
changed the title [-]Does not accept service uuids to filter in parameters for startScanning() like other biindings?[/-][+]Filtering service uuids in parameters for startScanning() is not reliable.[/+]on Aug 31, 2020
Activity
pursual commentedon Aug 31, 2020
It looks like it works when the array only contains one item?
This might be miscoded. Instead of matching any of the service uuids, it might be trying to match only advertisements which contain ALL of them. I do not have a device that broadcasts moret than 1 service uuid, so unable to confirm.
Regardless it does not work with more than one service uuid. noble_uwp and other bindings do.
[-]Does not accept service uuids to filter in parameters for startScanning() like other biindings?[/-][+]Filtering service uuids in parameters for startScanning() is not reliable.[/+]geovie commentedon Sep 1, 2020
@pursual You're right currently we pass the service uuids as filter to the AdvertismentWatcher.
The alternative would be to watch for all and filter the advertisement manually once we receive it.
If anyone wants to provide a PR for this the steps would be:
serviceUUIDsin a class fieldmAdvertiementServiceUUIDs(similar tomAllowDuplicates)mAdvertiementServiceUUIDshttps://github.com/Timeular/noble-winrt/blob/master/src/ble_manager.cc#L139tony-gutierrez commentedon Oct 28, 2020
Fixed in https://github.com/tony-gutierrez/noble-winrt/tree/servicefilter which is based off of https://github.com/fido-alliance/noble-winrt