Android Question BLE2 - Reading RSSI

Encarni Moreno

Member
Licensed User
Longtime User
Hi, I'm trying to read rssi value from a BLE device connected but the event Manager_RssiAvailable never rise. I've tried with a pair of devices and the result is the same in both cases.
I'm using a service:

Sub Service_Start (StartingIntent As Intent)
Manager.Initialize("Manager")
StartServiceAt("", DateTime.Now + 30 * DateTime.TicksPerSecond, False)
DateTime.DateFormat = "yyyy-MM-dd HH:mm:ss"
Log(DateTime.Date(DateTime.Now) & " reading rssi")
Manager.ReadRemoteRssi
End Sub

-----------------------------------------------

Sub Manager_RssiAvailable (Success As Boolean, RSSI As Double)
Log(Success)
Log(RSSI)
End Sub

Have you used this functionality with success result?
 

Encarni Moreno

Member
Licensed User
Longtime User
Thanks Erel.
In fact i'm using in other service module the intent filter "android.bluetooth.device.action.ACL_CONNECTED" and I've checked that device is connected, but the event never rise after I use:
B4X:
Manager.ReadRemoteRssi
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…