react-native-ble-plx
react-native-ble-plx copied to clipboard
Question: Is the "operation timeout" configurable?
Occasionally when I try to read RSSI it times out with an "operation timed out" error. I'm still trying to find the cause, but in the meantime I was wondering if this operation timeout was configurable? I'd like to time out more quickly and just try again. Thank you!
I don't think this is configurable. However, I had an issue where often reading RSSI of multiple devices would result in at least one readRSSI() call timing out. At the time I was firing off each readRSSI within promises so they'd be asynchronous. Once I changed to calling readRSSI() synchronously (waiting for each read) there were no more timeouts.
I'm excited to inform you that we've released a new version of react-native-ble-plx
. Many of the concerns and bugs have been addressed in this update.
If you encounter any issues or have further suggestions, please don't hesitate to open a new issue.