W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > April 2015

Re: [web-bluetooth] Map to remove listing units

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Apr 2015 22:50:00 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-97248199-1430261399-sysbot+gh@w3.org>
@esprehn suggested moving toward something like 
`Bluetooth.getService('heart_rate')` and avoiding 
`navigator.bluetooth` entirely.

`Bluetooth.getService('uuid_alias')` collides with 
`getService('instanceId')`, so maybe 
`BluetoothUUID.getService('uuid_alias')` or 

We could also do `Bluetooth.uuidFor('service.heart_rate')`, making 
people include the type prefix that 
uses. Since we can avoid the type prefix in uses like 
`Bluetooth.requestDevice({filters: [{services: ['heart_rate']}]})`, 
I'm leaning toward `BluetoothUUID.getService('uuid_alias')`.

GitHub Notif of comment by jyasskin
Received on Tuesday, 28 April 2015 22:50:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:58:19 UTC