W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > September 2018

Re: [web-bluetooth] Allow manufacturerData and serviceData filters to requestDevice() to be Uint8Array or sequence<octet>

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Tue, 04 Sep 2018 17:37:49 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-418455191-1536082668-sysbot+gh@w3.org>
Note that no implementation that I am aware of supports specifying `manufacturerData` or `serviceData` filters at this time. That section of the specification is marked unstable. The `dataPrefix` and `mask` fields are currently defined as a `BufferSource` and so should likely be changed to a new typedef:

typedef (BufferSource or sequence<octet>) BufferOrOctetSequence;

I don't see an example of this in any other specification however it seems like it would be generally useful. My only concern is whether this would encourage developers not to use ArrayBuffers in places where it is preferable for performance reasons.

GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/407#issuecomment-418455191 using your GitHub account
Received on Tuesday, 4 September 2018 17:37:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 September 2018 17:37:51 UTC