B2G/Bluetooth/WebBluetooth-v2: Difference between revisions
Jump to navigation
Jump to search
(Fixing link to MDN docs) |
|||
| (41 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
== API Overview == | == 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 [https://developer.mozilla.org/en-US/docs/Web/API/window.navigator.mozBluetooth navigator.mozBluetooth] property, which returns a [https://wiki.mozilla.org/ | 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 [https://developer.mozilla.org/en-US/docs/Web/API/window.navigator.mozBluetooth navigator.mozBluetooth] property, which returns a [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager|BluetoothManager]] object. | ||
* Intro slides: [https://wiki.mozilla.org/images/2/21/WebBluetooth_API_v4.pdf pdf] | |||
== Interfaces == | == Interfaces == | ||
* [ | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothManager|BluetoothManager]] | ||
* [ | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothAdapter|BluetoothAdapter]] | ||
* [ | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice|BluetoothDevice]] | ||
* [ | * [[B2G/Bluetooth/WebBluetooth-v2/BluetoothClassOfDevice|BluetoothClassOfDevice]] (CoD) | ||
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle|BluetoothDiscoveryHandle]] | |||
* [[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/BluetoothAttributeEvent|BluetoothAttributeEvent]] | ||
** [ | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent|BluetoothDeviceEvent]] | ||
** [ | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothPairingEvent|BluetoothPairingEvent]] | ||
** [https:// | ** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothLeDeviceEvent|BluetoothLeDeviceEvent]] | ||
** [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent|BluetoothGattCharacteristicEvent]] | |||
== Discussion == | |||
* [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-03-14|2014-03-14]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-03|2014-04-03]] | |||
* [[B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-04-14|2014-04-14]] | |||
== Use Cases == | |||
== Implementation == | |||
* 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/document/d/1g5DpJGCGXJcHfcEVly1om8QRi5xoqhVXdpInQmtNJOc Gatt API Schedule] (google doc) | |||
== See also == | == See also == | ||
* [https://developer.mozilla.org/en-US/docs/WebAPI/WebBluetooth WebBluetooth API] (MDN) | * [https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API WebBluetooth API] (MDN) | ||
* [https:// | * [[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/JavaScript_code_modules/Promise.jsm/Promise Promise] (MDN) | |||
== | === Google Bluetooth APIs === | ||
* [https:// | |||
* [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] | |||
** [https://webbluetoothcg.github.io/web-bluetooth/use-cases.html Use cases and security concerns] | |||
** [https://github.com/WebBluetoothCG/web-bluetooth/issues Raise issues] | |||
* [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]. | |||
* [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