Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device No Longer Shows Up On Scan Result Stream After Connecting and Disconnecting #154

Open
cdbenjamin opened this issue Jul 19, 2023 · 1 comment

Comments

@cdbenjamin
Copy link

cdbenjamin commented Jul 19, 2023

Howdy!

I am new to both Flutter and BLE development. Currently, I need to build applications that run on Windows, Android, and IOS to read from a BLE device. I was hoping that quick_blue would enable me to do so in Flutter. I have been able to scan and connect to my BLE device using quick_blue; however, now whenever I run the same code, the device no longer shows up in the scan results. I've been trying for a while to find a solution to this issue; however, I have come up empty-handed. I thought possibly that the device is automatically reconnecting, thus I have two questions.

  1. How can I get the device to show up in the scan results again?
  2. Or if the device is automatically reconnecting, how do I access the deviceId without the scan results?

I've tried creating multiple new projects with the same code as well as running the example project in the quick_blue github. The device has never showed up again in the scan results. In addition, I have connected to other devices and the same issue occurs: These devices no longer show up in the scan results.

@cdbenjamin cdbenjamin changed the title Device No Longer Shows Up On Scan Stream After Connecting and Disconnecting Device No Longer Shows Up On Scan Result Stream After Connecting and Disconnecting Jul 19, 2023
@xFrah
Copy link

xFrah commented Jul 20, 2023

I had the same problem and the problem was that the device was automatically reconnecting.
I haven't found a way to avoid this using this library alone, but I changed the code on the BLE device to re-enable the advertisting after connecting to a new device.

This is because on my BLE device, whenever a connection is establised, the advertising gets disabled.

It would be a really useful feature to be able to see already connected devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants