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.

I guys i’m using this library for my Android Application. I have a question. I need to connect to a particular device (actually two with a very similar name, one right and one left). I would like to know if there is a way to connect directly to a device without considering all the others. I saw that in the function:

BleManager.scan ([], 5, true)
             .then (results => {

the results variable returns all the devices, how do I get back only what interests me? Thanks a lot.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
marcosinigagliacommented, May 14, 2019

You can filter only by the service UUID, or you can connect directly to the peripheral id if you already saved it.

0reactions
marcosinigagliacommented, May 15, 2019

To be precise: to connect you need the peripheral id, to have the peripheral id you need to scan the device at least one time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scan Options - Wordfence
This scan checks for known malicious content and dangerous URLs stored in WordPress options that are used by WordPress core, plugins, or themes....
Read more >
SCAN Options (HMO) SCAN Classic (HMO)
SCAN Options is our newest and most competitive Medicare. Advantage Prescription Drug Plan, it provides comprehensive medical, hospital and pharmacy coverage ...
Read more >
How to scan documents on your iPhone or iPad - Apple Support
Scan a document. Open Notes and select a note or create a new one. Tap the Camera button Tap Camera button to start...
Read more >
Scan documents with Google Drive - Android
Scan documents like receipts, letters, and billing statements to save them as searchable PDFs on your Google Drive. Scan a document Important: Google ......
Read more >
QR & Barcode Scanner - Apps on Google Play
QR & Barcode Scanner app is the fastest QR code scanner / bar code scanner out there. QR & Barcode Scanner is an...
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