Android Question BT RSSI & Android 8

FrankBerra

Active Member
Licensed User
Hello everyone!

In the past i was used to obtain RSSI from a bluetooth device during a background scan by using this instructions: https://www.b4x.com/android/forum/threads/bluetooth-rssi-signal-strenth.43019/#post-261068

Actually with Android 8 it doesn't work, so i am guessing that it is a limitation of Android 8 related to implicit broadcasts.

So is there a solution or a library that can log the RSSI during a scan of surrounding Bluetooth devices?
(The scan is made always in background by a service)

Isn't possible, for example, modify the original Serial Library and add something like this and then pass back the value to the sub _DeviceFound (Name As String, MacAddress As String, RSSI as Int)?

B4X:
int  rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);
(Taken from https://stackoverflow.com/questions/15312858/get-bluetooth-signal-strength)

Thanks in advance for your any suggestions!
 
Last edited:

Erel

Administrator
Staff member
Licensed User
Top