Questions tagged [react-native-ble-plx]
106 questions
12
votes
1 answer
FabricViewStateManager: setState called without a StateWrapper
I am an iOS developer venturing into Android dfor the first time using React-native.
I am creating a react-native app that uses bluetooth-le, using polidieas react-native-ble-plx library. iOS app works fine, bluetooth scans and detecgts devices. …

Bob O
- 121
- 1
- 4
12
votes
1 answer
Losing data after connecting the bluetooth module
Objective
I am trying to return data from the BlueTooth device after connected because to use the read and write function, need some data.
Example data name, overflowServiceUUIDs, solicitedServiceUUIDs, mtu, rssi... and many others. Because if I…

Vagner Wentz
- 391
- 1
- 7
- 29
7
votes
1 answer
React Native - Global Event Listener
I have a listener registered in my Pairing screen that calls a method whenever the connected Bluetooth device gets disconnected
// Pairing.js
const BleManagerModule = NativeModules.BleManager;
const bleManagerEmitter = new…

Andrei Zgirvaci
- 367
- 3
- 11
4
votes
2 answers
React Native bluetooth device authentication
I'm trying to communicate with a bluetooth LE device, but have been told I need to "authenticate" before being able to read / write data. The hardware dev has told me that the device sends a key to the recipient, and I need to reply with…

AWE
- 64
- 4
- 14
4
votes
0 answers
How can I wait for a successful bluetooth pairing?
I'm new to bluetooth and to react native as well and I've encountered a problem that I've spent days on but I haven't gotten anywhere.
I'm developing an app using the react-native-ble-plx library, but I encountered the same issue using…

Xenofono
- 169
- 2
- 9
4
votes
0 answers
react-native-ble-plx not detecting all nearby devices
import {BleManager} from 'react-native-ble-plx';
const DeviceManager = new BleManager();
export const scan = function scan() {
const subscription = DeviceManager.onStateChange((state) => {
if (state === 'PoweredOn') {
…

JayaniH
- 293
- 1
- 2
- 9
3
votes
2 answers
react-native-ble-plx disconnects from BLE device whenever I use navigation.navigate()
I am using React Native context to pass data from a simple react-native-ble-plx script to different screens in my app. I'm using react-native-navigation for these screens. Whenever I call navigation.navigate(), I successfully navigate to another…

Ethan Stacey
- 95
- 5
3
votes
1 answer
Why cant i see any notifications when i send data to device over BLE?
I'm trying to make an app that sends commands to a BLE device and i cant get any feedback. I am using a library called ble.plx which has an option to monitor characteristics but it wont output anything for me.
I need to read values from…

rerboi
- 73
- 8
3
votes
0 answers
Unable to connect to device via react-native-ble-plx
I am trying to connect to a ble device using react-native-ble-plx module and below is my code for creating a connection:-
console.log("device id is ", device.id)
manager.connectToDevice(device.id).then(mydevice=>{
…

Vîvëk Šhäřmä
- 111
- 1
- 4
3
votes
0 answers
In setInterval , asynchronous function are getting in queue and making app freezes by memory leak, in javascript
In setInterval , asynchronous function are getting in queue and making app freezes by memory leak, in javascript
//Below the function that's i am using.
setIntervalsForServices = async (
forkDevice, forkParsedData,
shockDevice, shockParsedData )…

Sourabh techman
- 31
- 2
3
votes
0 answers
How do I write to device using react-native-ble-plx?
I have a react native project that is suppose to print a ticket using a little Bluetooth printer.
In order to access bluetooth functionality I'm using react-native-ble-plx library.
My question is, once I connect to the device, how do I send the…

Oscar Garcia
- 41
- 2
3
votes
1 answer
How to authenticate with Mi Band 3 in React Native
I have struggled for a few days to find a way to authenticate to my Mi Band 3 using React Native. I'm using react-native-ble-plx to make the connection. I can search for the nearby devices and I can even connect to the band, but when I try to call…

João Pimentel
- 41
- 7
3
votes
1 answer
No such property: variantManager
I have an issue on the compilation on vs code and on android studio:
The build view:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-ble-plx'.
> No such property: variantManager for…

donovan
- 31
- 1
3
votes
0 answers
60/5000 Pair mi band 4 with react-native app like mi fit app
I recently bought a mi band 4, I'm testing with react-native but I don't know how to pair the device like the mi fit app, the mi fit app sends a request to the bracelet and a message appears on her screen. confirm and pair. Can someone help me pair…

Igor Gabriel
- 31
- 2
2
votes
0 answers
How to stop monitorCharacteristic in React native ble-pplx
I'm having trouble with the monitorCharacteristicForService function in react-native-ble-plx. I want to stop the monitoring, but I don't seem to get it. Here is my code :
const getNumberOfTrames = async(device)=>{
await…

Boonty
- 63
- 7