Version: Smart Feature Phone 3.0

BluetoothGattCharacteristic.addDescriptor

Description#

Adds a descriptor to this characteristic.

Syntax#

var promise = instanceOfBluetoothGattCharacteristic.addDescriptor(uuid, permissions, value);

Parameters#

  • uuid UUID of the descriptor to add.

  • permissions GattPermissions of the descriptor to add.

  • value The initial value of this descriptor.

Return value#

A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, it returns the added BluetoothGattDescriptor object, and property descriptors is also updated with the added descriptor.