Questions tagged [react-native-ble-manager]

35 questions
0
votes
0 answers

Differences between react-native-ble-plx vs react-native-ble-manager

I found the following libraries that support BLE for react native, I wanted to know the opinion of those who have had the opportunity to try them, if you have tried them. Can you tell me the differences between them? What are the pros and cons of…
0
votes
0 answers

how to connect and get data from car OBD device by bluetooth in react native?

I want to connect to OBD device and recive car informations by react native how can do that?
0
votes
0 answers

ble manager write command now working in react native

I am trying to send a unlock command for a lock but ble manager return undefined in result. code below: let finalCommand = "f11fffee03100014fdb247fd2a15291d1c21f417d508cb62be27d05513ded16374f6f572666f6aa043f22f"; const data =…
Suraj
  • 61
  • 4
0
votes
1 answer

Android/React Native crashing with react-native-ble-manager on one phone, but not other

So I'm running into an issue where I am getting an app crashing on one phone (Pixel 6 Android 13), but not an Android 11 phone when running BLEManager.scan. Here are the permissions being used:
0
votes
0 answers

null is not an object (evaluating '_BleModule.BleModule.createClient')

I'm trying to create expo app on windows for android with 'react-native-ble-plx' package. However, after ejecting and scanning QR code on my Xiaomi I get an error: null is not an object (evaluating '_BleModule.BleModule.createClient'). I followed…
0
votes
0 answers

React Native Android 12 Permission, Ble cannot scan

On Android 12 or higher Ble cannot scan. My android.manifest is below:
0
votes
1 answer

Error when using write() with "react-native-ble-manager" library with status=3

So, I'm trying to send data to BLE device. My phone and BLE device are already connected. My function: const sendCom = async () => { const data = utf8Encode('1') // convert data to bytes const service = 'fff0' const characteristic =…
0
votes
1 answer

Could not find service with uuid error on IOS React-native BleManager

I do the same things on android it works but on IOS it doesn't work. I can scan devices on IOS and Android. I can blemanger.connect to any device on IOS and Android.. I can't startNotification on my device on IOS but can on android. I tried…
0
votes
1 answer

BleManager.Write not returning anything (React-Native)

Hello I'm trying to communicate between my bluetooth sensor and my phone using BLE Manager.XX I'm trying to create a React-Native app.XX ........I can find & connect to my Bluetooth sensor.XX ........I can send data.XX ........I can recieve…
0
votes
1 answer

React-Native BleManager.Write doesn't return anything

Hello I'm trying to communicate between my bluetooth sensor and my phone using BLE Manager. I'm trying to create a React-Native app. I can find & connect to my Bluetooth sensor. I can send data. I can recieve data I can't collect the sensor…
0
votes
0 answers

How can I get BleManager.write-> return promise

Hey I'm new to react :) , trying to get response from write function. I tried the function below. const response = BleManager.write( "XX:XX:XX:XX:XX:XX, 'XXXXXXXX-0000-XXXX-XXXX-XXXXXXXXXXXX', 'XXXXXXXX-0000-XXXX-XXXX-XXXXXXXXXXXX', data, …
0
votes
1 answer

react native ble manager BleManager.write function doesn't respond as expected

const infoConnected = () => {//Show the connected devices BleManager.getConnectedPeripherals([]).then((results) => { if (results.length == 0) { console.log('No connected peripherals') } //for (var i = 0; i < 1;/*list2.length;*/ i++)…
0
votes
1 answer

React-Native-BLE-plx : how to get all scanned device list of advertising ble devices using ble-plx or BLE-Manager

im making a ble devices scanning app and im facing 2 different problems with these two libraries. using ble-plx: it is only returning a single device object after scanning not a list of device. . with ble-plx i tried this…
0
votes
0 answers

Listen to bluetooth disabled on iOS

I'm creating a Bluetooth application, and I'm trying to listen to Bluetooth events. I'm using react-native-bluetooth-classic library: https://kenjdavidson.com/react-native-bluetooth-classic/api-overview/ I've succeeded listen to onDeviceRead from…
0
votes
1 answer

Bluetooth ID not same as scanned by other devices

I am working on an app that scans for nearby Bluetooth devices then checks the database if the user is present with Bluetooth ID If it's present display it to the other user nearby. but the issue is when the person installs the app we get the…