Questions tagged [react-native-ble-plx]
106 questions
2
votes
1 answer
setTimeout function triggers callback twice
I have a write function which basically add data to queue and sends data every 500ms and i have used couple of setTimeouts to write data as below. And Analysing logs i suspsect setTimeout has been called twice, i want to know is it even possible?…

gyan deep
- 1,880
- 1
- 13
- 9
2
votes
0 answers
Get Nearby Bluetooth devices in react native
I'm looking for to get nearby bluetooth devices in react-native. I have used some react-native libraries but while scanning with serviceUUID sometimes iOS devices are not able to detect in android and vice-versa. Even-though I advertise/broadcasting…

pranay kumar
- 31
- 2
2
votes
0 answers
Unable to read from BLE with react-native-ble-plx
I'm using React Native and the BLE package react-native-ble-plx on my Ubuntu machine.
According to the docs, I've done the following:
Scanned for devices
Connected to…

William
- 31
- 1
2
votes
0 answers
React native Printer
I'm new to react-native, I'm making app which can connect to printer with bluetooth I'm using react-native-ble-plx . I had successfully connect to my printer with bluetooth but I don't know to to print some thing from it.
import React,…

chirag prajapati
- 579
- 6
- 22
2
votes
3 answers
Failed to build react native app after linking with ble-plx
react-native run-android failed after linking with react-native-ble-plx
Task :react-native-ble-plx:compileDebugJavaWithJavac FAILED
This is a newly created app with react-native init, didn't change anything except the min sdk.
Already tried to…

Kreator
- 59
- 1
- 11
2
votes
1 answer
Where should I put onBackPressureBuffer(n) in a RxJava subscription chain?
I'm trying to hotfix an existing React Native library react-native-ble-plx adding onBackPressureBuffer() in existing Java code.
I know this is ugly but I have no time to submit a PR right now and there is a pending issue that may solve the…
anon
2
votes
1 answer
React Native BLE with MiBand
I'm really new to this but I already know (by searching other projects through the Internet) that the MiBands have an authentication process.
The thing is I have tried to write without and with response to the only service UUID I got through the…

Rafael Botas
- 125
- 1
- 1
- 9
2
votes
2 answers
Avoid Duplicate BLE devices using react-native-ble-plx
I am using react-native-ble-plx for implementing bluetooth in my app
The bluetooth scanning works fine but it contains duplicates in android whereas it works fine in iOS since allowDuplicates is default false in iOS.
In android the default is true.…

Sanjeev S
- 1,113
- 2
- 13
- 33
2
votes
1 answer
How do I discover Service UUIDs and Characterstic UUIDs with react-native-ble-plx?
Question:
I'm trying to connect to my bluetooth device, however upon connecting and discovering all services and characteristics, I'm unable to advance because the information returned is insufficient. I receive no service UUIDs nor any…

kemicofa ghost
- 16,349
- 8
- 82
- 131
1
vote
0 answers
TypeError: undefined is not a function (near '...device.monitorCharacteristicForService...')
I'm trying to pull data from a glucose monitor. I've connected successfully and have the correct UUIDs for the relevant services and characteristics but I'm getting the error below:
TypeError: undefined is not a function (near…

James Owen
- 41
- 1
- 4
1
vote
0 answers
react-native-ble-plx with Expo Run - Failed to build
Finally the long waited support for Bluetooth is covered by Expo team:
https://expo.canny.io/feature-requests/p/bluetooth-1
But when I run expo run:ios on Mac, I get an error - value of optional type 'CBService?' must be unwrapped to a value of type…

Tymoxx
- 167
- 2
- 11
1
vote
0 answers
React Native BLE with OBD devices
I am currently trying to create a React Native app that lets me connect to my OBD2 device and read data about my car from it. However, I am struggling to figure out the "reading data" step. I am able to connect to the device and see characteristics…

Timothy Wilmot
- 101
- 11
1
vote
1 answer
React-native-ble-plx unable to read with Android version less than 9
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…

Aarthi Govardhanan
- 19
- 3
1
vote
1 answer
react-native-ble-plx HELP to get the Service and Characteristics and to WriteWithoutResponse
I'm new on Ble-Plx and React-Native, I'm working on a project where we should be able to connect to a device and change the behavior, just writing new characteristics and it should change... I used a Ble Starter that I found on the internet, and I…

Federico
- 11
- 2
1
vote
0 answers
ReactNative: decoding the characteristic value received from BLE is not working
I am building a ReactNative application that will receive the data from another machine/ device via BLE. I am using this package, https://www.npmjs.com/package/react-native-ble-plx to implement the BLE logic. Now, I am having a problem decoding the…

Wai Yan Hein
- 13,651
- 35
- 180
- 372