Questions tagged [react-native-ble-plx]

106 questions
0
votes
0 answers

React Native app freezes for continuous data read from BLE device

I successfully receive and read the data from BLE device using react-native-ble-plx library. Listener receives the data every 10ms or 20ms but UI freezes ~1min afterwards. What is the proper way to handle this scenario? class DataReceiver extends…
0
votes
1 answer

React native with redux is laggy on dispatch

In my app, I have a function which calls every 2s a bluetooth command to ask the current temperature of a device with a setInterval function. The bluetooth response is given by monitored function. I use react native-ble-plx library for that. I have…
0
votes
1 answer

bluetooth low energy is working between two mobile phone?

i used bluetooth low energy in my mobile app with react-native . and i want to just find other mobile devices, so i can't find any other mobile phone and theirs supported bluetooth low-energy , but i find my Smartwatch , well my question is…
0
votes
1 answer

Issue processing async function in a Bluetooth manager component listener function

I am having issues running some asynchronous code in a bluetooth RN app. I am trying to create a listener function that does the following: connect to a device (using an async function), log that I have connected, then disconnect from the device…
0
votes
0 answers

How to continually monitor a bluetooth Characteristic?

I have a React Native application. Im trying to get Glucose measurements from a peripheral. theres a Data Transfer option on the peripheral where it'll transfer data from the peripheral device via bluetooth. I can retrieve and decode the data off…
sopuz
  • 85
  • 6
0
votes
0 answers

Does Heart Rate Services/Characteristics Assigned Number in BLE Devices is different for each manufacturer/Brand?

I have been working on a Mobile application in react-native which connects to any SmartWatch(fitbit/Samsung) or any sensors which advertise the heart rate with their services and characteristics. Currently i'm holding a Fitbit Versa Lite Smart Watch…
0
votes
1 answer

How to convert UInt16 or bytes into heart beat rate in React Native

I'm trying to read the heart beat rate from my Fitbit Versa Lite Smart Watch from my React-Native application, i was able to get the characteristics of the heart rate and was able to get the value in encoded base64 format like below Heart Rate Data:…
0
votes
1 answer

How to read BLE Peripheral Characteristics in react native using react-native-ble-plx

I'm developing an application which scans for BLE devices(Peripherals), then connect to them, read their services and characteristics. For now, I was able to connect to an iPhone which acting as a Peripheral device with certain characteristics and…
0
votes
1 answer

BLE data transfer speed

I am trying to know what is the maximum data transfer speed between an Android mobile phone and a BLE peripheral. Wikipedia indicates that this is "125 kbit/s – 1 Mbit/s – 2 Mbit/s"…
0
votes
1 answer

Can't connect to device via bluetooth using react-native-ble-manager

I tried to connect bluetooth device directly by passing peripheral id to connect method.But after few seconds it automatically disconnect and catch block execute and show Connection error. connect(){ BleManager.connect('58:85:e9:5f:5f:82') …
0
votes
0 answers

Struggling with BLE communication on Sensortile

I'm developing a React Native application that will read data off of a ST Sensortile. I'm new to doing BLE development. Trying to understand services, characteristics, notifications, etc. I'm using react-native-ble-plx library. I am able to scan…
spdaly
  • 1,260
  • 2
  • 18
  • 35
0
votes
0 answers

BLE Peripheral connection issue in android using react-native-ble-plx API

I am creating an application where I need to scan all the BLE beacons and connect to a specific one and then later on do other operations on that peripheral. I am able to scan the peripherals on android device, but I am unable to connect to any of…
0
votes
0 answers

Subscribe to an event emitter that has 2 parameters?

My context is React Native / RxJS / TypeScript I'm trying to subscribe to an event emitter that has 2 parameters. The function prototype is like this: handleUpdateValueForDiskStorage = (error: BleError | null, characteristic: Characteristic | null)…
anon
0
votes
1 answer

React Native BLE error: device disconnected

Trying to write from phone to a device using the method below. We have three packets of data to transmit. The first packet transmits, then our phones disconnect with error Response Characteristic Error: Error: Device disconnected. Can anyone shed…
0
votes
0 answers

Rxjs timer is completing too early on react-native/android

Ok, in order to ask my question here's a little context: I have a react-native project that uses the react-native-ble-plx library in order to access the device's bluetooth. The library has a startDeviceScan method that takes a callback, and so I…
Badashi
  • 1,124
  • 9
  • 18