Class TapkeyBleGattServiceConfig


  • public class TapkeyBleGattServiceConfig
    extends Object
    Bluetooth GATT service configuration as used by Tapkey.
    • Constructor Detail

      • TapkeyBleGattServiceConfig

        public TapkeyBleGattServiceConfig​(String serviceUuid,
                                          String centralToPeripheralCharacteristicUuid,
                                          String peripheralToCentralCharacteristicUuid)
    • 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.