Version: Smart Feature Phone 3.0

BluetoothGattService.addCharacteristic

Description#

The method adds a characteristic to this service.

Syntax#

var promise = instanceOfBluetoothGattService.addCharacteristic(uuid, permissions, properties, value);

Parameters#

  • uuid UUID of the characteristic to add.

  • permissions GattPermissions of the characteristic to add.

  • properties GattCharacteristicProperties of the characteristic to add

  • value The initial value of this characteristic.

Return value#

A Promise to indicate whether the operation is resolved or rejected. Once the Promise is resolved, the property characteristics is also updated with the added characteristic.