B2G/Bluetooth/WebBluetooth-v2: Difference between revisions
Jump to navigation
Jump to search
(Fixing link to MDN docs) |
|||
| (12 intermediate revisions by 5 users not shown) | |||
| Line 13: | Line 13: | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle|BluetoothDiscoveryHandle]] | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle|BluetoothDiscoveryHandle]] | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingListener|BluetoothPairingListener]] | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingListener|BluetoothPairingListener]] | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt|BluetoothGatt]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer|BluetoothGattServer]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService|BluetoothGattService]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic|BluetoothGattCharacteristic]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor|BluetoothGattDescriptor]] | |||
* Events | * Events | ||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent|BluetoothAdapterEvent]] | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapterEvent|BluetoothAdapterEvent]] | ||
| Line 18: | Line 23: | ||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] | ||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent|BluetoothPairingEvent]] | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent|BluetoothPairingEvent]] | ||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent|BluetoothLeDeviceEvent]] | |||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent|BluetoothGattCharacteristicEvent]] | |||
== Discussion == | == Discussion == | ||
| Line 23: | Line 30: | ||
* [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-03|2014-04-03]] | * [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-03|2014-04-03]] | ||
* [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-14|2014-04-14]] | * [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-14|2014-04-14]] | ||
== Use Cases == | |||
== Implementation == | == Implementation == | ||
| Line 28: | Line 36: | ||
* Implementation on B2G is tracked on bugzilla ([https://bugzilla.mozilla.org/show_bug.cgi?id=1005848 Bug 1005848]). | * Implementation on B2G is tracked on bugzilla ([https://bugzilla.mozilla.org/show_bug.cgi?id=1005848 Bug 1005848]). | ||
* [https://docs.google.com/a/mozilla.com/document/d/1qs01qttdp-enOs19Ey-bfh5C5D6uT3Ro5t-2TsYJ1vY Roadmap] (google doc) | * [https://docs.google.com/a/mozilla.com/document/d/1qs01qttdp-enOs19Ey-bfh5C5D6uT3Ro5t-2TsYJ1vY Roadmap] (google doc) | ||
* [https://docs.google.com/document/d/1g5DpJGCGXJcHfcEVly1om8QRi5xoqhVXdpInQmtNJOc Gatt API Schedule] (google doc) | |||
== See also == | == See also == | ||
* [https://developer.mozilla.org/en-US/docs/ | * [https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API WebBluetooth API] (MDN) | ||
* [[WebAPI/WebBluetooth|WebBluetooth API]] (MozillaWiki) | * [[WebAPI/WebBluetooth|WebBluetooth API]] (MozillaWiki) | ||
* [https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings#Constant WebIDL Bindings] (MDN) | * [https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings#Constant WebIDL Bindings] (MDN) | ||
| Line 39: | Line 48: | ||
* [https://docs.google.com/a/mozilla.com/document/d/1MBOLc1J09xhmEy9As17Rii4asM7u60LluRIv-OPPARM/edit#heading=h.v1qva9empk48 Design doc] | * [https://docs.google.com/a/mozilla.com/document/d/1MBOLc1J09xhmEy9As17Rii4asM7u60LluRIv-OPPARM/edit#heading=h.v1qva9empk48 Design doc] | ||
* [http://webbluetoothcg.github.io/web-bluetooth/ Draft Community Group Report] proposed to [http://www.w3.org/community/web-bluetooth/ W3C Bluetooth Community Group] | |||
* [http://webbluetoothcg.github.io/web-bluetooth/ | |||
** [https://webbluetoothcg.github.io/web-bluetooth/use-cases.html Use cases and security concerns] | ** [https://webbluetoothcg.github.io/web-bluetooth/use-cases.html Use cases and security concerns] | ||
** [https://github.com/WebBluetoothCG/web-bluetooth/issues Raise issues] | ** [https://github.com/WebBluetoothCG/web-bluetooth/issues Raise issues] | ||
* [https://developer.chrome.com/apps/app_bluetooth Chrome bluetooth API] | * [https://developer.chrome.com/apps/app_bluetooth Chrome bluetooth API] | ||
** Bluetooth-related IDL files: [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth.idl bluetooth.idl], [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_low_energy.idl bluetooth_low_energy.idl], [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_socket.idl bluetooth_socket.idl], and [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_private.json bluetooth_private.json]. | ** Bluetooth-related IDL files: [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth.idl bluetooth.idl], [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_low_energy.idl bluetooth_low_energy.idl], [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_socket.idl bluetooth_socket.idl], and [https://code.google.com/p/chromium/codesearch/#chromium/src/chrome/common/extensions/api/bluetooth_private.json bluetooth_private.json]. | ||
* [https://docs.google.com/a/mozilla.com/document/d/1ln1pVoeUpfWMJpR1JGE-wEL3yJBQdMWVvqGPzbaZnNE/edit Meeting note (Aug 6)] between Chrome and Mozilla folks | |||
=== Under Construction === | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothServerSocket|BluetoothServerSocket]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothSocket|BluetoothSocket]] | |||
Latest revision as of 09:34, 10 June 2015
API Overview
The Web Bluetooth API allows to discover, pair, and connect to bluetooth devices. As it is a completely experimental and non-standard API, it is currently available for certified applications only. The main entry point for the API is the navigator.mozBluetooth property, which returns a BluetoothManager object.
- Intro slides: pdf
Interfaces
- BluetoothManager
- BluetoothAdapter
- BluetoothDevice
- BluetoothClassOfDevice (CoD)
- BluetoothDiscoveryHandle
- BluetoothPairingListener
- BluetoothGatt
- BluetoothGattServer
- BluetoothGattService
- BluetoothGattCharacteristic
- BluetoothGattDescriptor
- Events
Discussion
Use Cases
Implementation
- Implementation on B2G is tracked on bugzilla (Bug 1005848).
- Roadmap (google doc)
- Gatt API Schedule (google doc)
See also
- WebBluetooth API (MDN)
- WebBluetooth API (MozillaWiki)
- WebIDL Bindings (MDN)
- Promise (MDN)
Google Bluetooth APIs
- Design doc
- Draft Community Group Report proposed to W3C Bluetooth Community Group
- Chrome bluetooth API
- Bluetooth-related IDL files: bluetooth.idl, bluetooth_low_energy.idl, bluetooth_socket.idl, and bluetooth_private.json.
- Meeting note (Aug 6) between Chrome and Mozilla folks