ScanSettings
interface
ScanSettings
-
intervalTime?: number
Scan interval used to allow the library to release the CPU periodically. Measured in ms.
-
duplicateForgetTime?: number
Ignore duplicated results found in the specified time period. Measured in ms.
let scanSettings = await scanner.getScanSettings();
scanSettings.intervalTime = 100; // 100ms
scanSettings.duplicateForgetTime = 3000; // 3s
await scanner.updateScanSettings(scanSettings);