Package network.datahop.blediscovery
Class BluetoothUtils
- java.lang.Object
-
- network.datahop.blediscovery.BluetoothUtils
-
public class BluetoothUtils extends java.lang.Object
BLE characteristics util functions.
-
-
Constructor Summary
Constructors Constructor Description BluetoothUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<android.bluetooth.BluetoothGattCharacteristic>
findCharacteristics(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
static java.util.List<android.bluetooth.BluetoothGattCharacteristic>
findCharacteristics(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID, java.util.List<java.util.UUID> groups)
static android.bluetooth.BluetoothGattDescriptor
findClientConfigurationDescriptor(java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptorList)
static android.bluetooth.BluetoothGattCharacteristic
findDataHopCharacteristic(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
static android.bluetooth.BluetoothGattCharacteristic
findDirectCharacteristic(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
static boolean
isDataHopCharacteristic(android.bluetooth.BluetoothGattCharacteristic characteristic)
static boolean
matchAnyCharacteristic(java.util.UUID SERVICE_UUID, java.util.List<java.util.UUID> groups)
static boolean
matchDirectConnectionCharacteristic(android.bluetooth.BluetoothGattCharacteristic characteristic)
static boolean
requiresConfirmation(android.bluetooth.BluetoothGattCharacteristic characteristic)
static boolean
requiresResponse(android.bluetooth.BluetoothGattCharacteristic characteristic)
-
-
-
Method Detail
-
findCharacteristics
public static java.util.List<android.bluetooth.BluetoothGattCharacteristic> findCharacteristics(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID, java.util.List<java.util.UUID> groups)
-
matchAnyCharacteristic
public static boolean matchAnyCharacteristic(java.util.UUID SERVICE_UUID, java.util.List<java.util.UUID> groups)
-
matchDirectConnectionCharacteristic
public static boolean matchDirectConnectionCharacteristic(android.bluetooth.BluetoothGattCharacteristic characteristic)
-
findCharacteristics
public static java.util.List<android.bluetooth.BluetoothGattCharacteristic> findCharacteristics(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
-
findDataHopCharacteristic
@Nullable public static android.bluetooth.BluetoothGattCharacteristic findDataHopCharacteristic(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
-
findDirectCharacteristic
@Nullable public static android.bluetooth.BluetoothGattCharacteristic findDirectCharacteristic(android.bluetooth.BluetoothGatt bluetoothGatt, java.util.UUID SERVICE_UUID)
-
isDataHopCharacteristic
public static boolean isDataHopCharacteristic(android.bluetooth.BluetoothGattCharacteristic characteristic)
-
requiresResponse
public static boolean requiresResponse(android.bluetooth.BluetoothGattCharacteristic characteristic)
-
requiresConfirmation
public static boolean requiresConfirmation(android.bluetooth.BluetoothGattCharacteristic characteristic)
-
findClientConfigurationDescriptor
@Nullable public static android.bluetooth.BluetoothGattDescriptor findClientConfigurationDescriptor(java.util.List<android.bluetooth.BluetoothGattDescriptor> descriptorList)
-
-