Version: Smart Feature Phone 3.0

BluetoothGattServer.notifyCharacteristicChanged

Description#

The method sends a notification/indication that a local characteristic has been updated.

Syntax#

var promise = instanceOfBluetoothGattServer.notifyCharacteristicChanged(address, characteristic, confirm);

Parameters#

  • address The address of remote LE device to notify.

  • characteristic The updated BluetoothGattCharacteristic](/docs/sfp-3.0/migration-from-2.5/next-new-apis/b2g/bluetooth/bluetoothgattcharacteristic)

  • confirm Whether to request confirmation from the client (indication) or not (notification).

Return value#

A Promise to indicate whether the operation is resolved or rejected.