readPhy

suspend fun readPhy(): PhyInUse

Read the current transmitter PHY and receiver PHY of the connection.

PHY LE 2M or PHY Coded is supported since Android 8.0 (API level 26) or later.

Return

The PHY in use for transmitting and receiving data.

Throws

If the device is not connected.

If PHY could not be read.

If BLUETOOTH_CONNECT permission is denied.