Hi,
I have a project that connects my smartphone with a bluetooth device, I need to know when my phone is too far away from the device.
I know I can check the RSSI level with:
but, if I understand correctly, the RSSI updates at each Admin_DeviceFound() and this only happens after Admin_DiscoveryFinished so to check the RSSI
of my device I have to wait for the Admin_DiscoveryFinished cycle to finish and this takes many seconds.
I tried using a serial connection to check when the signal is lost, this works fine with my HC-05 but the other device I need (my car) does not accept the serial connection.
How can I check the RSSI level of a particular MacAddress continuously or almost every 5-10 seconds.
Thanks in advance.
Paolo.
I have a project that connects my smartphone with a bluetooth device, I need to know when my phone is too far away from the device.
I know I can check the RSSI level with:
B4X:
If admin.LastFoundIntent.HasExtra("android.bluetooth.device.extra.RSSI") Then
Dim rssi As Int = admin.LastFoundIntent.GetExtra("android.bluetooth.device.extra.RSSI")
Log("RSSI:" & rssi)
End If
but, if I understand correctly, the RSSI updates at each Admin_DeviceFound() and this only happens after Admin_DiscoveryFinished so to check the RSSI
of my device I have to wait for the Admin_DiscoveryFinished cycle to finish and this takes many seconds.
I tried using a serial connection to check when the signal is lost, this works fine with my HC-05 but the other device I need (my car) does not accept the serial connection.
How can I check the RSSI level of a particular MacAddress continuously or almost every 5-10 seconds.
Thanks in advance.
Paolo.