setPhy

suspend fun setPhy(txPhy: BleGattPhy, rxPhy: BleGattPhy, phyOption: PhyOption): PhyInfo

Sets preferred PHY for the connection.

Return

PHY values set after the request. They may differ from requested values.

Parameters

txPhy

PHY (BleGattPhy) of a transmitter.

rxPhy

PHY (BleGattPhy) of a receiver.

phyOption

PHY option (PhyOption).