public class GattLocalDescriptor

  1. Object
  2. GattLocalDescriptor
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.

Constructors

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

Methods

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

Inherited methods

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.