getCurrentConnectionState method

Future<BleConnectionState> getCurrentConnectionState(
  1. String deviceAddress
)

Asks the platform to get the current connection state for a Bluetooth device by its address.

Returns a Future of BleConnectionState.

Implementation

Future<BleConnectionState> getCurrentConnectionState(String deviceAddress) {
  return CentralPlatformInterface.instance
      .getCurrentConnectionState(deviceAddress);
}