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

Change timeout of BleManagerDisconnectPeripheral

Open Heltonphg opened this issue 4 years ago • 1 comments

Version Tell us which versions you are using:

react-native-ble-manager v7.4.1 react-native v0.63.4 Android 10

Expected behaviour BleManagerDisconnectPeripheral is fired after a timeout during which a connection attempt is made.

Question: Can I change some way or timeout of triggering BleManagerDisconnectPeripheral? I wanted it to always fire within 10s - 15s.

Any help will be greatly appreciated.

Heltonphg avatar Jun 22 '21 15:06 Heltonphg

U can use a react-native library called Headless JS, which will help to run the android application background or foreground.But it works only for Android.

vish188 avatar Jul 08 '21 10:07 vish188