yanshouwang / bluetooth_low_energy

A Flutter plugin for controlling the bluetooth low energy.
https://pub.dev/packages/bluetooth_low_energy
MIT License
50 stars 16 forks source link

Communicate with peripherals already connected to the OS #61

Closed AYM1607 closed 5 months ago

AYM1607 commented 7 months ago

Thanks for your hard work @yanshouwang! I'm considering using this plugin for an app I'm developing, but I want to know if the following scenario is supported or planned: As a central, connect to a peripheral that's already connected to the OS. I.e. I don't need to run discovery from the app, I just need to communicate with devices that are already connected.

I perused through the API and unless I missed something it doesn't seem like there's a way of doing it. Is there? Or do you have plans to implement it?

yanshouwang commented 7 months ago

I think I can add a method like retrieveConnectedPeripherals in the next version.

===== Progress

Released Android on bluetooth_low_energy_android

yanshouwang commented 6 months ago

The 6.0.0-dev.0 has released, the retrieveConnectedPeripherals is supported on all platforms except Windows.

yanshouwang commented 5 months ago

Released in 6.0.0