question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help Needed To Write Data on BLE Device

See original GitHub issue

react-native-ble-manager: ^8.0.2 react-native: ^0.68.1 iOS/Android: 11 Expected behaviour

LED Light Strip that’s connected to the device should change colors on WriteWithoutResponse call.

Actual behaviour

WriteWithoutResponse passes successfully but device shows no change in color.

Steps to reproduce

Successful connection to LED Light Strip Send WriteWithoutResponse Call Here is the Response from BLE Device That I’m getting from LED Strips. I want to write on BLE Device and there is only one service that has property to writewithoutresponse but I’m confused a bit that how can I write on BLE By using This Characteristic. Below Code is Giving Success But Led Is Doing Nothing. I’m Using Below Function But I’m unable to figure out that which data will be passed: BleManager.writeWithoutResponse( peridata.id, fullUUID(peridata.services[2].uuid), fullUUID(peridata.characteristics[4].characteristic), [0x00, 0x01, 0x02], ) .then(() => { console.log('Success' ); }) .catch(error => { console.log('======'); console.log(error); }); Screenshot 2022-04-21 at 12 07 00 PM l

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
anees17861commented, May 17, 2022

@jaferi512 Please try the following things:

  1. Make sure service discovery is complete before writing
  2. Hardcode service and characteristic to write to instead of picking from array
  3. If the hardware developer is in your team, ask him to check logs on their side as well
0reactions
jaferi512commented, May 17, 2022

@anees17861 Hardware developer has told me to send values like this.That’s why I’m trying like this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transfer BLE data - Android Developers
The first thing to do once you connect to the GATT Server on the BLE device is to perform service discovery. This provides...
Read more >
How to write data to BLE device in android - Stack Overflow
I am able to scan a ble device from my android application after this I want to send data to that scanned device....
Read more >
Unable to write data to BLE device - MIT App Inventor Help
I am just getting started with AppInventor and have created a simple Android app which just needs to send a character to my...
Read more >
Getting Started With BLE - A Complete Guide - MindBowser
In this case, the central device can send meaningful data to peripheral devices and vice versa. The operation of BLE can be divided...
Read more >
The Ultimate Guide to Android Bluetooth Low Energy
Unless the BluetoothDevice handle was cached from a recent scan, we need to perform a BLE scan before we can connect to a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found