Skip to content

Filtering service uuids in parameters for startScanning() is not reliable. #18

Open

Description

@pursual

The noble lib allows you to provide two parameters to startScanning() (an array of service uuids, and a boolean for allow duplicates).

This binding does not discover anything when an array of service ids is passed?

Activity

  1. pursual commented on Aug 31, 2020

    @pursual
    Author

    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.

  2. 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
  3. geovie commented on Sep 1, 2020

    @geovie
    Contributor

    @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:

  4. tony-gutierrez commented on Oct 28, 2020

    @tony-gutierrez
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions