on Phy Update
Called when the PHY (Physical Layer) for a connection has been updated.
PHY updates can change the data rate and range characteristics of the BLE connection. This callback is invoked after BluetoothGatt.setPreferredPhy completes or when the remote device initiates a PHY change.
Parameters
gatt
The BluetoothGatt instance for the connection.
tx Phy
The transmitter PHY in use: - android.bluetooth.BluetoothDevice.PHY_LE_1M (1 Mbps) - android.bluetooth.BluetoothDevice.PHY_LE_2M (2 Mbps) - android.bluetooth.BluetoothDevice.PHY_LE_CODED (long range)
rx Phy
The receiver PHY in use (same constants as txPhy).
status
BluetoothGatt.GATT_SUCCESS if the PHY was updated successfully, or an error code if the update failed.
See also
Connection State Machine. handle Phy Update