Closed Bug 1126123 Opened 5 years ago Closed 2 years ago
Implement BLE Auto
To support BLE AutoConnect functionality, we should revise our BLE APIs as below: 1) gatt.connect() -> gatt.connect(boolean autoConnect) Parameter - autoConnect: Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device becomes available (true). Return value: A Promise to indicate whether the operation is resolved or rejected. The Promise would be rejected if 1) property connectionState is not disconnected when the method is called, 2) autoConnect is false and the remote LE device is not in range, or 3) BluetoothGatt.disconnect() is issued and succeeded before the connect process is done. 2) disconnect The method disconnects an established connection or cancels an ongoing connection. If the property connectionState is not connected or connecting when the method is called, the Promise would be rejected. Besides, bluedroid stack currently won't notify gecko the result of canceling an ongoing connect request. (http://androidxref.com/4.4.4_r1/xref/external/bluetooth/bluedroid/btif/src/btif_gatt_client.c#460) Hence we also need to patch stack in order to fulfill our API design.
Remove [bluetooth2] from title since it's already landed on m-c.
Summary: [Bluetooth2] Implement BLE AutoConnect functionality → Implement BLE AutoConnect functionality
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.