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.

getConnectedDevice

See original GitHub issue

await RNBluetoothClassic.getConnectedDevice(); - returned an error - No devices connected (( But the device is already connected! Device: iPad Air

index.tsx:274 Error: No bluetooth device connected
    at RNBluetoothClassic.fn [as getConnectedDevice] (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:2165:36)
    at App.initialize$ (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:133436:88)
    at tryCatch (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29290:19)
    at Generator.invoke [as _invoke] (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29465:24)
    at Generator.prototype.(anonymous function) [as next] (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29333:23)
    at tryCatch (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29290:19)
    at invoke (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29366:22)
    at http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:29376:15
    at tryCallOne (http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:3244:14)
    at http://192.168.0.107:8081/index.bundle?platform=ios&dev=true&minify=false:3345:17

index.tsx:279 initializeDevices::list
index.tsx:280 []

IMG_F7ED2DF67EE6-1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zachariahtimothycommented, Mar 19, 2020

Thanks for the info @kenjdavidson! Our app is for enterprise / government use so they are used to paying $1500+ for RFID scanners. I reached out to a manufacturer so will see how that goes. I confirmed the device I am using works with iOS because I tested with SerialMagic Keys iOS app.

Thanks for the shoutout on mustache! My wife hated it at first then when I shaved it she missed it and I have had it ever since. Haha!

0reactions
kenjdavidsoncommented, Mar 19, 2020

I’m not an expert, but I’d say 99% from the manufacturer. The only company I’ve seen RELEASE their MFi codes is Zebra (scanners/printers) but those are only for test, in order to release the app to the store you need to have the manufacturer sign off on each iteration of your app (name,version,reason for use). The vendor we use has been fantastic in this regards, but for just playing around with bluetooth classic, it doesn’t seem realistic.

MFi compliant devices seem to be 3-4x the cost of non MFi compliant devices (with regards to Zebra anyhow). It makes sense, since it costs these companies so much to go through the MFi processes, they need to recoup it somehow.

Again, I may be completely wrong - so take this with a grain of salt.

ps… That’s a god damned amazing mustache! My wife refuses to come near me if I even attempt one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BluetoothManager - Android Developers
Get connected devices for the specified profile. int, getConnectionState(BluetoothDevice ... public List<BluetoothDevice> getConnectedDevices (int profile).
Read more >
BluetoothManager.getConnectedDevices - Java - Tabnine
Get list of connected Bluetooth LE devices ; BluetoothManager bluetoothManager = (BluetoothManager) mContext.getSystemService(Context.BLUETOOTH_SERVICE); ; List< ...
Read more >
Android bluetooth get connected devices - Stack Overflow
To see a complete list, this is a 2-step operation: get list of currently paired devices; scan for, or discover, all others in...
Read more >
Example usage for android.bluetooth BluetoothManager ...
Introduction. In this page you can find the example usage for android.bluetooth BluetoothManager getConnectedDevices.
Read more >
BluetoothManager.GetConnectedDevices(ProfileType) Method
Get connected devices for the specified profile.
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