Home > Software design >  (react-native-ble-plx) How to read only those that were gotten after sending request?
(react-native-ble-plx) How to read only those that were gotten after sending request?

Time:04-25

Is there any way to get response, similar to JavaScripts's fetch(), from ble device using react-native-ble-plx package?

I only achieved to add listener and listen to all messages sent by ble device.

Example what I want to achieve:

const response = await bleManager.sendMessage(deviceId, serviceUUID, characteristicUUID, message);

CodePudding user response:

What I was searching for was this. It was show by @jnpdx My problem is in device I am trying to connect. I hope it helps for someone in the future

  • Related