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

Customizing ScanSettings (Android)

Open comann opened this issue 9 years ago • 1 comments

Version

Tell us which versions you are using:

  • react-native-ble-manager v3.2.0
  • react-native v0.44.0

Feature

The ability to control the ScanSettings flags on android. If y'all are accepting pull requests I can make this one happen.

Essentially, I have a requirement that needs to ability to change the number of matches before a device is considered discovered. In additional plus would be to set the scan mode type and match mode. Are these flags something that I could incorporate into the options when creating the BleManager instance in JS (BleManager.start({}) and thus be passed to the ScanManager implementation.

Cheers,

comann avatar May 09 '17 16:05 comann

Hi @comann, if you mantain the flag optional there isn't problem if you want to add this option. Thanks.

marcosinigaglia avatar May 10 '17 08:05 marcosinigaglia