Package com.tapkey.mobile.ble
Class TapkeyBleGattServiceConfig
- java.lang.Object
-
- com.tapkey.mobile.ble.TapkeyBleGattServiceConfig
-
public class TapkeyBleGattServiceConfig extends Object
Bluetooth GATT service configuration as used by Tapkey.
-
-
Constructor Summary
Constructors Constructor Description TapkeyBleGattServiceConfig(String serviceUuid, String centralToPeripheralCharacteristicUuid, String peripheralToCentralCharacteristicUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCentralToPeripheralCharacteristicUuid()
The GATT characteristic UUID used for sending frames from the central device to the peripheral.String
getPeripheralToCentralCharacteristicUuid()
The GATT characteristic UUID used by the peripheral for notifying the central device about characteristic changes.String
getServiceUuid()
The GATT service UUID.
-
-
-
Method Detail
-
getServiceUuid
public String getServiceUuid()
The GATT service UUID. The UUID is always returned in 128-bit format. In case of 16-bit UUIDs, the value is expanded to its 128-bit format before bing returned.- Returns:
- the service UUID in 128-bit format.
-
getCentralToPeripheralCharacteristicUuid
public String getCentralToPeripheralCharacteristicUuid()
The GATT characteristic UUID used for sending frames from the central device to the peripheral. On app side this characteristic corresponds to the TX characteristic being written by the app.- Returns:
- the characteristic UUID in 128-bit format.
-
getPeripheralToCentralCharacteristicUuid
public String getPeripheralToCentralCharacteristicUuid()
The GATT characteristic UUID used by the peripheral for notifying the central device about characteristic changes. On app side this characteristic is used for receiving data by listening for notifications.- Returns:
- the characteristic UUID in 128-bit format.
-
-