Package ej.bluetooth

## Class BluetoothDescriptor

- java.lang.Object
- - ej.bluetooth.BluetoothAttribute
  - - ej.bluetooth.BluetoothDescriptor

-     public class BluetoothDescriptor
      extends BluetoothAttribute

  The `BluetoothDescriptor` class represents a remote or a local GATT descriptor.

  Remote descriptors may be retrieved by `getting the descriptors` of a remote characteristic.

  Local descriptors may be retrieved by `adding a local service` to the adapter.

  This class provides a method to get the characteristic to which the descriptor belongs.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BluetoothDescriptor()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `BluetoothCharacteristic` | `getCharacteristic()` | Returns the characteristic to which this descriptor belongs.

    - ### Methods inherited from class ej.bluetooth.BluetoothAttribute

      `getService, getUuid`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BluetoothDescriptor

          public BluetoothDescriptor()

  - ### Method Detail

    - #### getCharacteristic

          public BluetoothCharacteristic getCharacteristic()

      Returns the characteristic to which this descriptor belongs.
      Returns:
        the descriptor to which this descriptor belongs.