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

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