advertise
Starts Bluetooth LE advertising using given parameters.
Parameters
Advertising parameters describing how the data are to be advertised.
Advertising data to be broadcast.
The advertising time limit. May not exceed 180.000 ms on Android 5-7 and 655.350 ms on Android 8+. By default there is no timeout set.
A block that will be called when the advertising is started. The block will receive the actual TX power (in dBm) used for advertising.
Throws
If the BLUETOOTH_ADVERTISE permission is denied.
If the advertising could not be started.
If the advertising data is invalid.
Starts Bluetooth LE advertising using given parameters.
Parameters
Advertising parameters describing how the data are to be advertised.
Advertising data to be broadcast.
The maximum number of advertising events, in range 1-255.
A block that will be called when the advertising is started. The block will receive the actual TX power (in dBm) used for advertising.
Throws
If the BLUETOOTH_ADVERTISE permission is denied.
If the advertising could not be started.
If the advertising data is invalid.