react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

duplicates sneak there way into the response, even when allowDuplicates flag is set to false.

Open Vercjames opened this issue 3 years ago • 2 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [x ] I am running the latest version
  • [x ] I checked the documentation and found no answer
  • [ x] I checked to make sure that this issue has not already been filed

Expected Behavior

When scanning, duplicates should not appear during the manager.startDeviceScan event provided that the { allowDuplicates: false } flag is included.

Current Behavior

Every so often a duplicate does appear

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. create a blx application that scans for bluetooth devices.
  2. use another device to broadcast an bluetooth single.
  3. log the responses from the manager.startDeviceScan.
  4. toggle blx application until it messes up.

Vercjames avatar Jan 12 '23 17:01 Vercjames

This is happening to me as well except it isn't occasional - I'm currently looking at the same device scanned 216 times even though { allowDuplicates: false }.

harrisol22 avatar Jan 26 '23 23:01 harrisol22

Currently this is an iOS only feature https://dotintent.github.io/react-native-ble-plx/#scanoptions