1

I am using React native version "0.63.3" and "react-native-ble-plx" version "2.0.2". I am unable to read the characteristics in Android version less than 9.

It throws an error "Disconnected from {deviceId} with status 22 (UNKNOWN)" If I debug, I could find this in BleError.js is thrown "Error: Unknown error occurred. This is probably a bug! Check reason property" Any help is appreciated!

1 Answers1

0

I was recently working on an app requiring bluetooth functionality, I found this library to be much better than react-native-ble-plx, make sure to also check out their example to get a better understanding of how it works.

  • The only purpose of the library react-native-bluetooth-state-manager is to manage the Bluetooth state. Not more, not less. If you need further functionality like connecting and communicating to a device, please look at react-native-ble-plx. – Aarthi Govardhanan Sep 13 '21 at 09:00
  • That's not true, I've used it to scan, connect to devices and disconnect from devices. Take a look at the example they have at their github. – Mostafa Elkaramany Sep 13 '21 at 11:12
  • Do you speak about the react-native-bluetooth-manager package? – Aarthi Govardhanan Sep 14 '21 at 10:05