Version: Smart Feature Phone 3.0
BluetoothGattServer.startAdvertising
Description#
The method starts to broadcast advertisements with an optional custom advertisement data.
Syntax#
Parameters#
advDataThe custom advertisement data object. The default value of the object is defined in BluetoothAdvertisingData.
Return value#
A Promise to indicate whether the operation is resolved or rejected. If the bluetooth adapter is currently disabled, the Promise would be rejected.