B2G/Bluetooth/WebBluetooth-v2: Difference between revisions
Jump to navigation
Jump to search
m (Add 'Under Construction' section for Bluetooth socket) |
|||
| Line 54: | Line 54: | ||
** 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 | * [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]] | |||
Revision as of 08:53, 20 January 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