W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > January 2017

[web-bluetooth] Provide an option to bond device before connecting to device

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Jan 2017 11:55:51 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issues.opened-199535087-1483962950-sysbot+gh@w3.org>
beaufortfrancois has just created a new issue for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Provide an option to bond device before connecting to device ==
As you can read at 
https://bugs.chromium.org/p/chromium/issues/detail?id=670281#c18, it 
would be nice to provide an option to bond BLE device before 
connecting to device (especially on Android).

I see two options:

1. device.gatt.connect() always call Android function 
`device.createBond` before connecting.
2. device.gatt.connect({bond: true}) will call Android function 
`device.createBond` before connecting. 

I think I would prefer 1. `{bond: true}` option.

Please view or discuss this issue at 
https://github.com/WebBluetoothCG/web-bluetooth/issues/346 using your 
GitHub account
Received on Monday, 9 January 2017 11:56:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 9 January 2017 11:56:01 UTC