readConnectionParameters method

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

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

Reads from a native cache populated by callbacks that fire automatically during connection setup, so the call completes without issuing any BLE operations.

Returns null on iOS and on Android API < 26. Also returns null if the native callbacks have not yet fired (which is unlikely given the time between connection and the point where the dashboard first calls this method).

Implementation

Future<BleConnectionParameters?> readConnectionParameters({
  required String deviceAddress,
}) {
  return _platform.readConnectionParameters(deviceAddress: deviceAddress);
}