public abstract class BluetoothAttribute
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
BluetoothService |
getService()
Returns the service to which this attribute belongs.
|
BluetoothUuid |
getUuid()
Returns the UUID of this attribute.
|
public BluetoothUuid getUuid()
@Nullable public BluetoothService getService()
This method returns null
if this is a local attribute and it has not been added to a service.