I'm currently building a small utility to found my phone via Bluetooth and my computer. For this purpose I'm trying to get the RSSI to evaluate the distance between the two devices. How can I get the RSSI with Bluez in C/C++ ?
Is there an hci command for this and if yes, is there a list of HCI commands ?
Thanks.
Is there an utility it can be usefull for you. Try with bluetoothctl if you don't have try to install all the bluez library.
You only have to start a scan an it gives you the rssi from all the devices.
If you need to view the code. You also search in git code https://git.kernel.org/cgit/bluetooth/bluez.git/tree/
你可以做hcitool rssi但是应该连接这个设备如果你是bluez然后它为rssi值提供了propertychanged信号你可以检查docs / device-api.txt文件
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.