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.

Not getting full BLE peripheral name

See original GitHub issue

Version

Tell us which versions you are using:

  • react-native-ble-manager v6.5.2
  • react-native v0.57.4
  • iOS/Android I have three phones, Samsung galaxy 8/9, LG G5 and confirm the problem on every three phones.

Expected behaviour

When discover peripheral, peripheral.name has its own name.

Actual behaviour

I have a lot of scooters with built in BLE. Scooter’s BLE peripheral name is ‘MiscooterXXXX’ which XXXX is random number. Most of the time, peripheral.name has its own name for example Miscooter5521. But sometime, (I guess one or two out of ten) peripheral.name show only ‘Misc’. I have a lot of scooters and three phones and it is weird that this problem appears randomly on random scooter, random phones. If I try to connect ‘Misc’ peripheral, then it is connected successfully. However, what I try to do is when there are multiple scooters tuned on, show their peripheral name list to user in react-native app. When user select the peripheral name, then the scooter which has selected peripheral name will be connected.(Scooter’s XXXX number is printed on scooter so user can distinguish them by peripheral name.) The problem is, if there are multiple ‘Misc’ in list, user can’t distinguish scooters.

Steps to reproduce

  1. scan
  2. list the peripheral name

Stack trace and console log

Hint: it would help a lot if you enable the debugger (“Pause on exceptions” in the “Source” panel of Chrome dev tools) and spot the place where the error is thrown

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thisrootcommented, Jan 16, 2019

@marcosinigaglia > Try to look in the advertising field if you have other informations.

I was try to decode advertising.manufacturerData.data field, and got an unreadable string. Do you known how to decode this data?

0reactions
marcosinigagliacommented, Jan 15, 2019

Try to look in the advertising field if you have other informations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not getting full BLE peripheral Name - Stack Overflow
1 Answer 1 · This issue is due to space. Ohterwise I am getting eeb4f646c8d79c7d3fa properly form other BLE device.. · What's still...
Read more >
peripheral.name vs advertisementDa… - Apple Developer
Apple document says that peripheral.name is device advertises or GAP device name. ... as its Bluetooth low energy Generic Access Profile (GAP) device...
Read more >
On Android the peripheral.name is wrong · Issue #648 - GitHub
The peripheral.name should be the Generic access device name, not the localName. (It is correct on iOS). Actual behaviour. console.log of the peripheral...
Read more >
CC2640R2F: Changing the Peripheral Name - Bluetooth forum
Part Number: CC2640R2F Hi Everyone, I have imported Project Zero and modified as per my application requirement. While I'm scanning BLE ...
Read more >
How to get complete device name from another peripheral ...
I know how to get the device name from the advertising data, but there are sometimes when the peripherals do not advertise the...
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