Navideck / universal_ble

A cross-platform Android/iOS/macOS/Windows/Linux/Web Bluetooth Low Energy (BLE) plugin for Flutter
https://pub.dev/packages/universal_ble
Other
19 stars 2 forks source link

Linux: only able to receive data from one BLE device at the time. #33

Closed mortenboye closed 1 month ago

mortenboye commented 1 month ago

On Linux using BlueZ 5.73 I can successfully discover and connect to multiple BLE devices.

However when I connect to the second one, I stop receiving data from the first.

I have set notifiable to notification and data comes in until the second device connects and starts notify as well, then UniversalBle.onValueChanged stops being called for the first device.

Monitoring with bluetoothctl and btmon I can verify that both devices are still connected and data are being received from both of them. However through universal_ble I only receive data from the second device.

I haven't tried with more than two devices at this point.

fotiDim commented 1 month ago

@mortenboye thank you for the report. Have you checked if this works on any of the other platforms?

mortenboye commented 1 month ago

@mortenboye thank you for the report. Have you checked if this works on any of the other platforms?

I haven't tested all platforms, but it does work on Windows.

fotiDim commented 1 month ago

OK, good to know. Probably, it should be an easy fix. We will revisit Linux in a few days time, so please hold on. In the meantime PRs are welcome!

mortenboye commented 1 month ago

I believe I fixed it in https://github.com/Navideck/universal_ble/pull/35

fotiDim commented 1 month ago

@mortenboye thanks for the PR. 0.9.7 was released which includes the fix. Please confirm that it works for you.

mortenboye commented 1 month ago

It works. Great!