Hello friends, kindly help me to get bluetooth rssi (signal strenth). I am very new to b4a and tried with almost every tutorial about bluetooth rssi with broadcostreceiver library. But i cant get code work.
Service_Start will be called whenever a Bluetooth device is discovered:
B4X:
Sub Service_Start (StartingIntent As Intent)
If StartingIntent.Action = "android.bluetooth.device.action.FOUND" Then
Dim rssi As Int = StartingIntent.GetExtra("android.bluetooth.device.extra.RSSI")
Log("rssi: " & rssi)
End If
End Sub
Call BluetoothAdmin.StartDiscovery to search for devices.