flutter_reactive_ble icon indicating copy to clipboard operation
flutter_reactive_ble copied to clipboard

A way of getting RSSI of connected device

Open bartlomiejszm opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? (please describe) I do have a problem where i have to have signal strength fo my bluetooth device, the device stops advertising after being connected, so i am unable to read the RSSI.

Describe the solution you'd like it would be nice to have a possibility to listen to a stream of changing RSSI

Describe alternatives you've considered i have considered scanning constantly but my device is not advertising after being connected.

Additional context well thats pretty much all there is to it

bartlomiejszm avatar Jun 14 '21 11:06 bartlomiejszm

On a side note, i have noticed that another package https://pub.dev/packages/flutter_blue does have this feature, at least they state it has in their issues, but it doesnt at all fit into my logic, i need the reactiveness this package provides.

bartlomiejszm avatar Jun 14 '21 17:06 bartlomiejszm

Thank you for interest in our library. I think it is a good feature that would be very nice to have. As you know both Android12 and iOS15 are upcoming and this will be our focus on the short term. I will label this as enhancement.

Btw if you are up to it feel free to create a pr yourself :)

remonh87 avatar Jun 14 '21 18:06 remonh87

I might try to do this, but i am also a little busy right now, we'll see

@edit - thats my personal account, the author one is my work account

Fasuh avatar Jun 14 '21 18:06 Fasuh

understandable make sure to assign the issue if you are working on it.

remonh87 avatar Jun 14 '21 18:06 remonh87

This would be really helpful to have. Some apps can connect to multiple devices, but would like to know the 'nearest' based on RSSI.

cjcdev avatar Nov 29 '21 21:11 cjcdev

Hi @Taym95

No expectations, but do you have a timeline on this?

Thanks.

raphael-bmec-co avatar Jan 04 '22 15:01 raphael-bmec-co

I'm working on this currently, will have a PR up later today or tomorrow

TNorbury avatar Aug 03 '22 23:08 TNorbury

Hello

what is the status of this feature are you planning to add it to the next version of the plugin? I think this feature would take this plugin to the next level.

ziperjohn avatar Jul 19 '23 07:07 ziperjohn

available in next release

Taym95 avatar Jan 25 '24 13:01 Taym95

Hello

Is there any documentation and/or an example on how to access this API? I've had a look but I'm struggling to find anything.

raphael-bmec-co avatar Apr 16 '24 10:04 raphael-bmec-co

you need v 5.3.1 and call readRssi function

Taym95 avatar Apr 16 '24 10:04 Taym95

Perfect thanks. Simple enough 🤦

I'm not clear on the underlying implementation but is this value available as a stream? If not, is there an underlying stream at the platform layer and an appropriate maximum rate at which we should call readRssi?

Basically, we have an RSSI sensitive application and we'd like to monitor this value but I don't want to be calling it 10x per second if 1) it has any BLE overhead - i.e. it actually queries the server or 2) it is only actually updated every 5 seconds for example.

raphael-bmec-co avatar Apr 16 '24 10:04 raphael-bmec-co

Perfect thanks. Simple enough 🤦

I'm not clear on the underlying implementation but is this value available as a stream? If not, is there an underlying stream at the platform layer and an appropriate maximum rate at which we should call readRssi?

Basically, we have an RSSI sensitive application and we'd like to monitor this value but I don't want to be calling it 10x per second if 1) it has any BLE overhead - i.e. it actually queries the server or 2) it is only actually updated every 5 seconds for example.

there is not stream, it is just future but you can keep recalling it and check the rate limit

Taym95 avatar Apr 16 '24 10:04 Taym95