Revert to previous BLE connection method:
- first, connectGatt(true) to support automatic (re-) connection - second, bluetoothGatt.connect() to connect immediately
This commit is contained in:
parent
586d959055
commit
d6f9eac711
|
@ -3,6 +3,7 @@
|
|||
####Version (Next)
|
||||
* Mi Band: support firmare versione 1.0.10.14 (and onwards?) vibration
|
||||
* Mi Band: get device name from official BT SIG endpoint
|
||||
* Mi Band: Display live activity data (screen stays on)
|
||||
|
||||
####Version 0.6.1
|
||||
* Pebble: Allow muting (blacklisting) Apps from within generic notifications on the watch
|
||||
|
|
|
@ -157,6 +157,7 @@ public final class BtLEQueue {
|
|||
BluetoothDevice remoteDevice = mBluetoothAdapter.getRemoteDevice(mGbDevice.getAddress());
|
||||
synchronized (mGattMonitor) {
|
||||
mBluetoothGatt = remoteDevice.connectGatt(mContext, true, internalGattCallback);
|
||||
mBluetoothGatt.connect();
|
||||
}
|
||||
setDeviceConnectionState(State.CONNECTING);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue