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