Closed RobertGary1 closed 1 year ago
Suggest reading the docs:
Bonded = Bonded Connected = open Serial connection
Connected does not mean what you think it means. You'll only get back devices with getConnectedDevices
after you run either device#connect()
or connectToDevice()
Thank you. Is there anyway to determine if the phone is already connected to a device?
That all depends what you mean by connected
? But the short answer is no.
Only one RFCOMM/serial connection can be opened to a device at one time, so if you have a serial connection open with a device from another application or other library, then there is no way to pass that off to this library.
If you're talking about connected
in terms of being connected through one of the other profiles, then no, this library was specifically designed for RFCOMM communication, not any of the other profiles to which the android system would connect behind the scenes.
Mobile Device Environment Provide a list of operating systems on which this issue is relevant.
Application Environment Provide information about your development environment:
Describe the bug If I do RNBluetoothClassic.getBondedDevices() I get back all the bonded devices. If I then call device.isConnected() on the bonded devices they always come back false
If I do RNBluetoothClassic.getConnectedDevices() it always comes back with 0 devices. Even though Android shows I have a couple devices connected
Could I have something wrong in my manifest that it cannot see connected devices?