From cf65d081a05268db55b615fa5c7abc1351bbadcd Mon Sep 17 00:00:00 2001 From: David J Kordsmeier Date: Wed, 27 Mar 2024 18:37:19 -0700 Subject: [PATCH] refs #49 Try using distinct --- magnet_app/lib/app_state_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magnet_app/lib/app_state_model.dart b/magnet_app/lib/app_state_model.dart index c2641b6..edd9c8b 100644 --- a/magnet_app/lib/app_state_model.dart +++ b/magnet_app/lib/app_state_model.dart @@ -112,7 +112,7 @@ class AppState extends BLEProvider { print("Scanning ..."); scanDeviceStream = ble.scanForDevices( withServices: [], // [serviceUuid] - scanMode: ScanMode.lowLatency).listen((device) async { + scanMode: ScanMode.lowLatency).distinct().listen((device) async { // #49 try out distinct print("examining new device"); print("---------------------");