Version: Smart Feature Phone 3.0

BluetoothGattService.addIncludedService

Description#

The method adds an included service to this service. The included service to be added should be an existing service of the same GATT server, otherwise the promise will be rejected.

Syntax#

var promise = instanceOfBluetoothGattService.addIncludedService(service);

Parameters#

Return value#

A Promise to indicate whether the operation is resolved or rejected. Once the Promise is resolved, it returns the added BluetoothGattService object, and property includedServices is also updated with the added service.