Package ej.bluetooth
Class BluetoothAttribute
- java.lang.Object
-
- ej.bluetooth.BluetoothAttribute
-
- Direct Known Subclasses:
BluetoothCharacteristic,BluetoothDescriptor
public abstract class BluetoothAttribute extends Object
TheBluetoothAttributeclass 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 Summary
Constructors Constructor Description BluetoothAttribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BluetoothServicegetService()Returns the service to which this attribute belongs.BluetoothUuidgetUuid()Returns the UUID of this attribute.
-
-
-
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.
-
-