getConnectionState method

Future<BluetoothConnectionState> getConnectionState(
  1. String deviceId
)

获取指定设备当前 BLE 连接状态。

参数:

  • deviceId:设备标识,无默认值。建议结合 connectionState 监听状态变化。

Implementation

Future<BluetoothConnectionState> getConnectionState(String deviceId) {
  throw UnimplementedError('getConnectionState() has not been implemented.');
}