public interface AndroidBluetoothDeviceWrapper
Modifier and Type | Method and Description |
---|---|
void |
connectGatt(android.content.Context context,
boolean autoConnect,
android.bluetooth.BluetoothGattCallback bluetoothGattCallback)
Wraps the Android connectGatt method used to connect and interrogate Bluetooth LE devices
|
java.lang.String |
getAddress()
Adress wrapper
|
android.bluetooth.BluetoothDevice |
getDevice() |
java.lang.String |
getName()
Name wrapper
|
java.lang.String getName()
java.lang.String getAddress()
void connectGatt(android.content.Context context, boolean autoConnect, android.bluetooth.BluetoothGattCallback bluetoothGattCallback)
context
- Android application contextautoConnect
- Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device becomes available (true)bluetoothGattCallback
- GATT callback handler that will receive asynchronous callbacksandroid.bluetooth.BluetoothDevice getDevice()