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 Details

  • 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.