scanDevices static method

Future<List<RfidBleDevice>> scanDevices({
  1. int timeoutSeconds = 10,
  2. bool readersOnly = true,
  3. List<String> knownDeviceIds = const [],
})

Implementation

static Future<List<RfidBleDevice>> scanDevices({
  int timeoutSeconds = 10,
  bool readersOnly = true,
  List<String> knownDeviceIds = const [],
}) async {
  final devices = await _platform.startBleScan(
    timeoutSeconds: timeoutSeconds,
    readersOnly: readersOnly,
    knownDeviceIds: knownDeviceIds,
  );
  return devices.map(RfidBleDevice.fromMap).toList();
}