Descriptor

Descriptor

Class that represents a GATT descriptor.

Constructor

new Descriptor(characteristicInstanceId, uuid, value, options)

Create a descriptor in the Bluetooth `Device's` GATT attribute table.
Source:
Parameters:
Name Type Description
characteristicInstanceId string The `Characteristic` instanceID this descriptor is to be added to.
uuid string A 128-bit or 16-bit unique identifier for this descriptor.
value array The initial value of this descriptor.
options Object This GATT descriptor's attribute's metadata.

Members

characteristicInstanceId

Get the instance Id of the GATT characteristic that this descriptor belongs to.
Source:

instanceId

Get the instanceId of this descriptor (since uuid is not enough to separate between descriptors).
Source: