2015-11-24 12:09:11

by François Beaufort

[permalink] [raw]
Subject: Add name and namePrefix filter to SetDiscoveryFilter

The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
Transport filters.
I was wondering if it would be possible to add "name" and "namePrefix"
filters to this list?

I'm shamelessly asking this because the Web Bluetooth API has added
these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter


2015-11-30 09:23:57

by François Beaufort

[permalink] [raw]
Subject: Re: Add name and namePrefix filter to SetDiscoveryFilter

You're right.
As discussed on a separate thread with Jakub, instead of two filters
we might want to add one unique filter "nameRegexp" that would take a
regular expression to filter against bluetooth device names.
What do you think?

On Mon, Nov 30, 2015 at 9:40 AM Luiz Augusto von Dentz
<[email protected]> wrote:
>
> Hi François,
>
> On Tue, Nov 24, 2015 at 2:09 PM, François Beaufort
> <[email protected]> wrote:
> > The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
> > Transport filters.
> > I was wondering if it would be possible to add "name" and "namePrefix"
> > filters to this list?
> >
> > I'm shamelessly asking this because the Web Bluetooth API has added
> > these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter
>
> I guess we can extend with more filters but Im afraid having 2 filters
> like that can be confusing, what if name and prefix are set? Shall it
> can an error? What should be the logic AND or OR operation? I guess
> like with the other we need a merge strategy if multiple clients set a
> filter with different names.
>
>
>
> --
> Luiz Augusto von Dentz

2015-11-30 08:40:14

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: Add name and namePrefix filter to SetDiscoveryFilter

Hi François,

On Tue, Nov 24, 2015 at 2:09 PM, François Beaufort
<[email protected]> wrote:
> The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
> Transport filters.
> I was wondering if it would be possible to add "name" and "namePrefix"
> filters to this list?
>
> I'm shamelessly asking this because the Web Bluetooth API has added
> these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter

I guess we can extend with more filters but Im afraid having 2 filters
like that can be confusing, what if name and prefix are set? Shall it
can an error? What should be the logic AND or OR operation? I guess
like with the other we need a merge strategy if multiple clients set a
filter with different names.



--
Luiz Augusto von Dentz