getCurrentConnectionState method

  1. @override
Future<BleConnectionState> getCurrentConnectionState(
  1. String deviceAddress
)
override

Returns the current connection state for the Bluetooth device with the specified address.

Implementation

@override
Future<BleConnectionState> getCurrentConnectionState(String deviceAddress) async {
  return _connectionStates[deviceAddress] ?? BleConnectionState.disconnected;
}