BluetoothLeAdvertiser

Base advertiser interface.

Parameters

D

The type of the advertising data.

Types

Link copied to clipboard
interface Payload

Base class for the advertising data.

Functions

Link copied to clipboard
abstract suspend fun advertise(connectable: Boolean, payload: D, timeout: Duration = Duration.INFINITE, block: (txPower: Int) -> Unit? = null)

Starts Bluetooth LE advertising.