I use Erel's blemanager library,on devicefound event can get devicename and macaddress.
howto get rssi from scanresult without connect (this has getRssi () : https://developer.android.com/reference/android/bluetooth/le/ScanResult.html)
**I try add this, it works for normal Bluetooth not Bluetooth LE**
**add to manifest**
AddReceiverText(BTService,
<intent-filter>
<action android:name="android.bluetooth.device.action.FOUND" />
</intent-filter>)
**and add to BTService**
Sub Service_Start (StartingIntent AsIntent)
If StartingIntent.Action = "android.bluetooth.device.action.FOUND"Then
Dim RSSI AsString = StartingIntent.GetExtra("android.bluetooth.device.extra.RSSI")
End If
End Sub
thanks
howto get rssi from scanresult without connect (this has getRssi () : https://developer.android.com/reference/android/bluetooth/le/ScanResult.html)
**I try add this, it works for normal Bluetooth not Bluetooth LE**
**add to manifest**
AddReceiverText(BTService,
<intent-filter>
<action android:name="android.bluetooth.device.action.FOUND" />
</intent-filter>)
**and add to BTService**
Sub Service_Start (StartingIntent AsIntent)
If StartingIntent.Action = "android.bluetooth.device.action.FOUND"Then
Dim RSSI AsString = StartingIntent.GetExtra("android.bluetooth.device.extra.RSSI")
End If
End Sub
thanks