requestPhy

abstract suspend 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.

Return

True if PHY was requested successfully; false otherwise.

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.