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 
`BluetoothService.uuidFor('uuid_alias')`.

We could also do `Bluetooth.uuidFor('service.heart_rate')`, making 
people include the type prefix that 
https://developer.bluetooth.org/gatt/services/Pages/ServicesHome.aspx 
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
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/49#issuecomment-97248199
Received on Tuesday, 28 April 2015 22:50:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 28 April 2015 22:50:03 UTC