List of usage examples for android.bluetooth BluetoothDevice connectGatt
public BluetoothGatt connectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback, int transport)
From source file:Main.java
public static BluetoothGatt connect(BluetoothDevice device, Context context, BluetoothGattCallback callback) { return device.connectGatt(context, false, callback, BluetoothDevice.TRANSPORT_LE); }