Class GattLocalDescriptor
java.lang.Object
com.codename1.bluetooth.le.server.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.-
Constructor Summary
ConstructorsConstructorDescriptionGattLocalDescriptor(BluetoothUuid uuid, int permissions) Creates a descriptor definition withGattLocalCharacteristic.PERMISSION_*bits. -
Method Summary
Modifier and TypeMethodDescriptionintThePERMISSION_*bitmask.getUuid()The UUID identifying this descriptor.byte[]getValue()The static value, ornullwhen reads are served via theGattServerListener.setValue(byte[] staticValue) Serves a static value without routing read requests to theGattServerListener.
-
Constructor Details
-
GattLocalDescriptor
Creates a descriptor definition withGattLocalCharacteristic.PERMISSION_*bits.
-
-
Method Details
-
setValue
Serves a static value without routing read requests to theGattServerListener. -
getUuid
The UUID identifying this descriptor. -
getPermissions
public int getPermissions()ThePERMISSION_*bitmask. -
getValue
public byte[] getValue()The static value, ornullwhen reads are served via theGattServerListener.
-