Example usage for android.bluetooth BluetoothDevice TRANSPORT_LE

List of usage examples for android.bluetooth BluetoothDevice TRANSPORT_LE

Introduction

In this page you can find the example usage for android.bluetooth BluetoothDevice TRANSPORT_LE.

Prototype

int TRANSPORT_LE

To view the source code for android.bluetooth BluetoothDevice TRANSPORT_LE.

Click Source Link

Document

Prefer LE transport for GATT connections to remote dual-mode devices

Usage

From source file:Main.java

public static BluetoothGatt connect(BluetoothDevice device, Context context, BluetoothGattCallback callback) {
    return device.connectGatt(context, false, callback, BluetoothDevice.TRANSPORT_LE);
}