react-native-ble-plx icon indicating copy to clipboard operation
react-native-ble-plx copied to clipboard

Read characteristic in background?

Open lucasmrau opened this issue 1 year ago • 2 comments

Prerequisites

  • [X] I checked the documentation and FAQ without finding a solution
  • [X] I checked to make sure that this issue has not already been filed
  • [X] I'm sure that question is related to the library itself and not Bluetooth Low Energy or Classic in general. If that so, please post your question on StackOverflow.
  • [X] I'm running the latest version

Question

Someone already tested using with background-fetch to read from a device connected in foreground?

Question related code

No response

lucasmrau avatar Jul 20 '24 23:07 lucasmrau

I'm not using background fetch but I am using react-native-background actions to keep a task running indefinitely on iOS and Android that pulls data from a ble device at roughly 15Hz and also subscribes to location updates.

techfoundrynz avatar Aug 15 '24 05:08 techfoundrynz

I'm not using background fetch but I am using react-native-background actions to keep a task running indefinitely on iOS and Android that pulls data from a ble device at roughly 15Hz and also subscribes to location updates.

Are you sending this to a database or saving locally in a state?

@contactsimonwilson

lucasmrau avatar Aug 27 '24 15:08 lucasmrau

It should work with react-native-background-actions. Similar case https://github.com/dotintent/react-native-ble-plx/issues/1172

aliberski avatar Jan 13 '25 19:01 aliberski