I am currently using raspberry pi and want to get RSSI of a non-connected Bluetooth address. I am using
import bluetooth
result=bluetooth.lookup_name('XX:XX:XX:XX:XX:XX',timeout=5)
if(result !=None):
print("user near")
else:
print("user far")
but I want to be a little more precise and go to the else block in a closer distance and hence I need an RSSI value. Please help. I am new with raspberry and Python. (I am working in python3)
Bluepy library looks beneficial for RaspberryPI. Dont forget you should run like
"sudo python3 name.py"from terminal.For more info: https://github.com/IanHarvey/bluepy/tree/master/docs