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

Re: [web-bluetooth] Add code examples to the spec

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jun 2015 18:16:12 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-112901676-1434564972-sysbot+gh@w3.org>
I'm going to remove the 
[explainer](https://github.com/WebBluetoothCG/web-bluetooth/blob/98e2c1648a418c9ef3c6d9b535130225e8aaca08/explainer.md)
 for being out of date, so here's a list of things it intended to 
document that we don't have code examples for yet:

* Add a device using a non-standard UUID to show off the non-string 
interface.
* Show how to get all instances of a given service UUID, for example 
to support multiple battery services in a device.
* Show an example of querying a service's UUID to motivate the 
bluetoothUUID.get*() functions.
* [Not spec'ed yet] Register to get notified when a particular device 
comes in range. UA would present user with a dialog asking "which app 
do you want to handle this device?"
* Write a characteristic
* Read/write a descriptor

The existing examples could use more exposition, too. 

-- 
GitHub Notif of comment by jyasskin
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/75#issuecomment-112901676
Received on Wednesday, 17 June 2015 18:16:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 17 June 2015 18:16:33 UTC