Bluer lack of filtering support #74
-
Right now we have bluez-async and bluer, since I've already written hundred of lines worth of code with btleplug I'm sure I'll be much more comfortable with bluez-async however I want something more objective in terms of features to help me decide. The biggest issue with bluer for me right now is the lack of filtering, currently you have to iterate through each device through the discovered stream and await each device property individually. I seems like it'll be a lot of latency to the entire process of filtering and selecting the device. It does however have an option called
How would one know whether such a device has connected automatically, would you need to query My question is that is this something similar to what bluez-async does with it's services filter but also includes automatic connections. Also they state that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Do you mean the discovery filter? It is currently not exposed in BlueR, but even if it was, you would still have to do filtering of the discovered devices as the underlying I would assume that checking In general |
Beta Was this translation helpful? Give feedback.
Do you mean the discovery filter?
It is currently not exposed in BlueR, but even if it was, you would still have to do filtering of the discovered devices as the underlying
bluetoothd
does not provide any guarantee that the filter is indeed applied, i.e. it may have been merged with another, more general filter set by another application. This is the reason why BlueR is currently not exposing the discovery filter.I would assume that checking
is_connected
is the right way to check if a connection has been established when using GATT profiles. However, note that BlueR is just a front-end tobluetoothd
and all connection logic is handled by it.In general
bluez-async
and BlueR will behave v…