Version: Smart Feature Phone 3.0

BluetoothGattServer.removeService

Description#

The method removes a provided service. If the service doesn't exist in the GATT server, the promise will be rejected.

Syntax#

var promise = instanceOfBluetoothGattServer.removeService(service);

Parameters#

Return value#

A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, property services is also updated without the removed service.