Buffer.from([5, 0, null])does not actually send 0.
Buffer.from([5, 2, null])works.
Hi @dariuszseweryn and everyone
Knowing that you are super busy, I have one question.
How can I request permission in Android for BLE? I don't have any issues on IOS and other android devices but only Samsung S8 devices keeps responding "Not authorized to access BLE" when I try to scan.
Not sure I am describing the issue properly but seems like I have to do something to do with requesting permission. I added android.permission.BLUETOOTH and _ADMIN in manifest.
Thanks a lot.
Hello, I'm just getting started at this, is this library appropriate for reading from an already paired bluetooth device? I'm trying to read from a barcode scanner.
I don't think so. I mean, you need to pair with the device from the react-native app. If the BLE device was paired somewhere else I don't think you can read it. But I didn't try it
Hello everyone and @dariuszseweryn
After I write command to the device, the device starts to send data back. But it timed out after a few seconds or after around 100 bytes or 15-20 onMonitor fire. I am studying the source code of the module but not sure what the issue is.
I am not sure if it's byte limit or timeout limit.
Can you please help me sort out the situation?
So I'm trying to follow this blog post https://www.polidea.com/blog/ReactNative_and_Bluetooth_to_An_Other_level/.
Currently, I can connect to my bluetooth device and receive a message transmitted; however, I want to link a button press to a write request and I am having trouble doing so. I'm unsure how I can call a write request in this particular sequence. Also to how exactly would you disconnect from the device?