# Class GattLocalDescriptor

java.lang.Object
com.codename1.bluetooth.le.server.GattLocalDescriptor

public class GattLocalDescriptor extends Object
A descriptor definition of a local `GattLocalCharacteristic` served by this device's `GattServer`. Note that the Client Characteristic Configuration descriptor is managed by the platform stack -- do not add it manually.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GattLocalDescriptor(BluetoothUuid uuid, int permissions)`
  Creates a descriptor definition with `GattLocalCharacteristic``.PERMISSION_*` bits.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getPermissions()`
  The `PERMISSION_*` bitmask.
  `BluetoothUuid`
  `getUuid()`
  The UUID identifying this descriptor.
  `byte[]`
  `getValue()`
  The static value, or `null` when reads are served via the `GattServerListener`.
  `GattLocalDescriptor`
  `setValue(byte[] staticValue)`
  Serves a static value without routing read requests to the `GattServerListener`.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### GattLocalDescriptor

    public GattLocalDescriptor(BluetoothUuid uuid, int permissions)
    Creates a descriptor definition with `GattLocalCharacteristic``.PERMISSION_*` bits.

- ## Method Details

  - ### setValue

    public GattLocalDescriptor setValue(byte[] staticValue)
    Serves a static value without routing read requests to the `GattServerListener`.

  - ### getUuid

    public BluetoothUuid getUuid()
    The UUID identifying this descriptor.

  - ### getPermissions

    public int getPermissions()
    The `PERMISSION_*` bitmask.

  - ### getValue

    public byte[] getValue()
    The static value, or `null` when reads are served via the `GattServerListener`.