readConnectionParameters method

Future<BleConnectionParameters?> readConnectionParameters({
  1. required String deviceAddress,
})

Returns a snapshot of the active BLE link parameters for the connected device.

On Android, PHY values come from the BluetoothGatt.onPhyRead callback and connection parameters come from BluetoothGatt.onConnectionUpdated. Both are cached automatically during connection setup, so this call is synchronous from the Dart perspective.

Returns null on iOS, where Core Bluetooth does not expose these parameters to the central role. Also returns null on Android API < 26 or if the native callbacks have not yet fired.

Implementation

Future<BleConnectionParameters?> readConnectionParameters({
  required String deviceAddress,
}) async {
  throw UnimplementedError(
    'readConnectionParameters() has not been implemented.',
  );
}