Version: Smart Feature Phone 3.0
BluetoothGattServer.addService
Description#
The method adds a service. If the service already exists in the GATT server, the promise will be rejected.
Syntax#
Parameters#
serviceThe BluetoothGattService object to add.
Return value#
A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, property services is also updated with the added service.