connectGatt
abstract fun connectGatt(context: Context, autoConnect: Boolean, callback: BluetoothGattCallback): BluetoothGattWrapper
Connects to the GATT Server hosted by the BluetoothDevice
Parameters
context
the Context used for connecting to the GATT server
autoConnect
if true
the device will connect as soon as it becomes available, otherwise connects directly
callback
the BluetoothGattCallback used to receive for asynchronous result