Skip to content

Commit

Permalink
refs IoTone#49 Try using distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
truedat101 authored and pedroalvesbatista committed May 7, 2024
1 parent 6d3cb0a commit cf65d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magnet_app/lib/app_state_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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("---------------------");

Expand Down

0 comments on commit cf65d08

Please sign in to comment.