public interface IBluetoothGatt
BluetoothGatt
.for the default implementation
Modifier and Type | Interface and Description |
---|---|
static class |
IBluetoothGatt.DefaultFactory
Default implementation of
IBluetoothGatt.Factory . |
static interface |
IBluetoothGatt.Factory
Interface used by the library to instantiate a new instance of
IBluetoothGatt |
Modifier and Type | Field and Description |
---|---|
static IBluetoothGatt.Factory |
DEFAULT_FACTORY
An instance of
IBluetoothGatt.DefaultFactory used by the library, unless BleDeviceConfig.gattFactory is changed. |
Modifier and Type | Method and Description |
---|---|
void |
abortReliableWrite(android.bluetooth.BluetoothDevice device) |
boolean |
beginReliableWrite() |
UhOhListener.UhOh |
closeGatt() |
void |
connect(IBluetoothDevice device,
android.content.Context context,
boolean useAutoConnect,
android.bluetooth.BluetoothGattCallback callback) |
void |
disconnect() |
boolean |
discoverServices() |
boolean |
equals(P_GattHolder gatt) |
boolean |
executeReliableWrite() |
java.lang.Boolean |
getAuthRetryValue() |
BleDevice |
getBleDevice() |
BleService |
getBleService(java.util.UUID serviceUuid,
LogFunction logger) |
android.bluetooth.BluetoothGatt |
getGatt() |
java.util.List<BleService> |
getNativeServiceList(LogFunction logger) |
boolean |
isGattNull() |
boolean |
readCharacteristic(BleCharacteristic characteristic) |
boolean |
readDescriptor(BleDescriptor descriptor) |
boolean |
readPhy() |
boolean |
readRemoteRssi() |
boolean |
refreshGatt() |
boolean |
requestConnectionPriority(BleConnectionPriority priority) |
boolean |
requestMtu(int mtu) |
boolean |
setCharacteristicNotification(BleCharacteristic characteristic,
boolean enable) |
boolean |
setCharValue(BleCharacteristic characteristic,
byte[] data) |
boolean |
setDescValue(BleDescriptor descriptor,
byte[] data) |
void |
setGatt(android.bluetooth.BluetoothGatt gatt) |
boolean |
setPhy(Phy options) |
boolean |
writeCharacteristic(BleCharacteristic characteristic) |
boolean |
writeDescriptor(BleDescriptor descriptor) |
static final IBluetoothGatt.Factory DEFAULT_FACTORY
IBluetoothGatt.DefaultFactory
used by the library, unless BleDeviceConfig.gattFactory
is changed.void setGatt(android.bluetooth.BluetoothGatt gatt)
UhOhListener.UhOh closeGatt()
android.bluetooth.BluetoothGatt getGatt()
java.lang.Boolean getAuthRetryValue()
boolean equals(P_GattHolder gatt)
java.util.List<BleService> getNativeServiceList(LogFunction logger)
BleService getBleService(java.util.UUID serviceUuid, LogFunction logger)
boolean isGattNull()
void connect(IBluetoothDevice device, android.content.Context context, boolean useAutoConnect, android.bluetooth.BluetoothGattCallback callback)
void disconnect()
boolean requestMtu(int mtu)
boolean refreshGatt()
boolean setPhy(Phy options)
boolean readPhy()
boolean readCharacteristic(BleCharacteristic characteristic)
boolean setCharValue(BleCharacteristic characteristic, byte[] data)
boolean writeCharacteristic(BleCharacteristic characteristic)
boolean setCharacteristicNotification(BleCharacteristic characteristic, boolean enable)
boolean readDescriptor(BleDescriptor descriptor)
boolean setDescValue(BleDescriptor descriptor, byte[] data)
boolean writeDescriptor(BleDescriptor descriptor)
boolean requestConnectionPriority(BleConnectionPriority priority)
boolean discoverServices()
boolean executeReliableWrite()
boolean beginReliableWrite()
void abortReliableWrite(android.bluetooth.BluetoothDevice device)
boolean readRemoteRssi()
BleDevice getBleDevice()