startScan method

Stream<BleDevice> startScan({
  1. List<ScanFilter>? filters,
  2. ScanSettings? settings,
})

Asks the platform to start scanning for Bluetooth devices.

Returns a Stream of BleDevice found during the scan.

Implementation

Stream<BleDevice> startScan({
  List<ScanFilter>? filters,
  ScanSettings? settings,
}) {
  return CentralPlatformInterface.instance.startScan(
    filters: filters,
    settings: settings,
  );
}