-
public final class BleExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static UUIDCCC_DESCRIPTOR_UUIDprivate final static UUIDCHAR_UUID_WRITEprivate final static UUIDCHAR_UUID_CONTROL_WRITEprivate final static UUIDCHAR_UUID_READprivate final static UUIDCHAR_UUID_CONTROL_READprivate final static UUIDCHAR_UUID_ANNOUNCEprivate final static UUIDCHAR_UUID_PSMpublic final static LongWRITE_DELAY_MS
-
Method Summary
-
-
Method Detail
-
getCCC_DESCRIPTOR_UUID
final UUID getCCC_DESCRIPTOR_UUID()
UUID of the Client Characteristic Configuration Descriptor (0x2902).
-
getCHAR_UUID_WRITE
final UUID getCHAR_UUID_WRITE()
-
getCHAR_UUID_CONTROL_WRITE
final UUID getCHAR_UUID_CONTROL_WRITE()
-
getCHAR_UUID_READ
final UUID getCHAR_UUID_READ()
-
getCHAR_UUID_CONTROL_READ
final UUID getCHAR_UUID_CONTROL_READ()
-
getCHAR_UUID_ANNOUNCE
final UUID getCHAR_UUID_ANNOUNCE()
-
getCHAR_UUID_PSM
final UUID getCHAR_UUID_PSM()
-
findCharacteristic
final static BluetoothGattCharacteristic findCharacteristic(BluetoothGatt $self, UUID uuid)
-
findDescriptor
final static BluetoothGattDescriptor findDescriptor(BluetoothGatt $self, UUID uuid)
-
writeCharacteristicCompat
final static Integer writeCharacteristicCompat(BluetoothGatt $self, BluetoothGattCharacteristic characteristic, ByteArray payload, Integer writeType)
-
writeDescriptorCompat
final static Integer writeDescriptorCompat(BluetoothGatt $self, BluetoothGattDescriptor descriptor, ByteArray payload)
-
notifyCharacteristicChangedCompat
final static Integer notifyCharacteristicChangedCompat(BluetoothGattServer $self, BluetoothDevice device, BluetoothGattCharacteristic characteristic, Boolean confirm, ByteArray value)
-
isReadable
final static Boolean isReadable(BluetoothGattCharacteristic $self)
-
isReadable
final static Boolean isReadable(BluetoothGattDescriptor $self)
-
isWritable
final static Boolean isWritable(BluetoothGattCharacteristic $self)
-
isWritable
final static Boolean isWritable(BluetoothGattDescriptor $self)
-
isWritableWithoutResponse
final static Boolean isWritableWithoutResponse(BluetoothGattCharacteristic $self)
-
isIndicatable
final static Boolean isIndicatable(BluetoothGattCharacteristic $self)
-
isNotifiable
final static Boolean isNotifiable(BluetoothGattCharacteristic $self)
-
containsProperty
final static Boolean containsProperty(BluetoothGattCharacteristic $self, Integer property)
-
printProperties
final static String printProperties(BluetoothGattDescriptor $self)
-
containsPermission
final static Boolean containsPermission(BluetoothGattDescriptor $self, Integer permission)
-
isCccd
final static Boolean isCccd(BluetoothGattDescriptor $self)
Convenience extension function that returns true if this BluetoothGattDescriptor is a Client Characteristic Configuration Descriptor.
-
toAddressString
final static String toAddressString(ByteArray $self)
Convert a ByteArray representing a MAC address into that MAC address string.
-
toAddressBytes
final static ByteArray toAddressBytes(String $self)
Android identifies remote devices by MAC address, whereas iOS uses a UUID. The cross-platform code uses 16-byte values to handle full-size UUIDs directly. On Android we expand a MAC address into 16 bytes.
-
removeIfCompat
final static <E extends Any> Unit removeIfCompat(ConcurrentLinkedQueue<E> $self, Function1<E, Boolean> filter)
-
computeIfPresentCompat
final static <K extends Any, V extends Any> Unit computeIfPresentCompat(ConcurrentHashMap<K, V> $self, K key)
-
<no name provided>
final static Unit ()><no name provided>()
-
-
-
-