java.lang.Object
com.gluonhq.attach.ble.BleSpecs
All BLE UUIDs are of the form: 0000XXXX-0000-1000-8000-00805f9b34fb
These specs specify the unique XXXX code for each of the currently existing
Services, Characteristics and Descriptors
For more info about BLE see:
https://www.bluetooth.com/specifications/generic-attributes-overview
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
https://www.bluetooth.com/specifications/gatt/characteristicsstatic enum
https://www.bluetooth.com/specifications/gatt/descriptorsstatic enum
https://www.bluetooth.com/specifications/gatt/services -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatToken
(long assignedNumber) static long
getAssignedNumber
(UUID uuid) static String
getCharacteristicsToken
(UUID characteristicsUuid) static String
getServiceToken
(UUID serviceUuid) static UUID
getUUIDFromCharacteristicsName
(String charName) static UUID
getUUIDFromDescriptorName
(String descName) static UUID
getUUIDFromServiceName
(String serviceName) getUUIDfromTokenOrElse
(String token, Function<String, UUID> functionName)
-
Constructor Details
-
BleSpecs
public BleSpecs()
-
-
Method Details
-
getServiceToken
-
getCharacteristicsToken
-
getUUIDFromServiceName
-
getUUIDFromCharacteristicsName
-
getUUIDFromDescriptorName
-
getUUIDfromTokenOrElse
-
formatToken
-
getAssignedNumber
-