Package ej.bluetooth

Class BluetoothAttribute

  • Direct Known Subclasses:
    BluetoothCharacteristic, BluetoothDescriptor

    public abstract class BluetoothAttribute
    extends Object
    The BluetoothAttribute class represents a remote or a local GATT attribute. An attribute is either a characteristic or a descriptor.

    This class provides methods to get the UUID of the attribute and to get the service to which the attribute belongs.

    • Constructor Detail

      • BluetoothAttribute

        public BluetoothAttribute()
    • Method Detail

      • getUuid

        public BluetoothUuid getUuid()
        Returns the UUID of this attribute.
        Returns:
        the UUID of this attribute.
      • getService

        public BluetoothService getService()
        Returns the service to which this attribute belongs.
        Returns:
        the service to which this attribute belongs.