Bluetooth5AdvertisingSetParameters
constructor(connectable: Boolean, discoverable: Boolean = connectable, interval: Duration = AdvertisingInterval.MEDIUM, txPowerLevel: Int = TxPowerLevel.MEDIUM, includeTxPowerLevel: Boolean = false, primaryPhy: PrimaryPhy = PrimaryPhy.PHY_LE_1M, secondaryPhy: Phy = Phy.PHY_LE_1M, anonymous: Boolean = false, scannable: Boolean = false)
Parameters
connectable
Whether the advertisement will be connectable.
discoverable
Whether the General Discoverable flag (in case advertising is started without a timeout) or Limited Discoverable flag (if a timeout is specified) should be added to the scannable or connectable advertisement.
By default, a connectable advertisements will be discoverable.
Devices connecting to non-discoverable advertisements cannot initiate bonding.
This flag is ignored for non-scannable and non-connectable advertisements.
interval
The advertising interval, in range 20 ms - 10.24 sec. Use AdvertisingInterval for recommended values.
txPowerLevel
The requested TX power level for advertising. The actual TX power level may be different, depending on the hardware and implementation. Use TxPowerLevel for recommended values.