requestPhy

abstract fun requestPhy(txPhy: Phy, rxPhy: Phy, phyOptions: PhyOption): Boolean

Requests the PHY to be changed.

The result should be reported by emitting ConnectionParametersChanged event to events flow.

Parameters

txPhy

The preferred transmitter PHY.

rxPhy

The preferred receiver PHY.

phyOptions

The preferred coding to use when transmitting on the LE Coded PHY.

Throws

If BLUETOOTH_CONNECT permission is denied.