Version: Smart Feature Phone 3.0

BluetoothGattServer.sendResponse

Description#

The method sends a response of a read or write request to a remote LE device.

Syntax#

var promise = instanceOfBluetoothGattServer.sendResponse(address, status, requestId);

Parameters#

  • address The address of remote LE device to notify.

  • status The status of the request to reply. 0 for successful reply, otherwise, please see Bluetooth Core Specification vol 3, part F, 3.4.1.1 for defined error status codes.

  • requestId The ID of the request to reply.

Return value#

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