How to Get bluetooth signal strength (rssi) of connected bluetooth devices?

混江龙づ霸主 提交于 2019-12-11 20:44:32

问题


i want to get the bluetooth rssi of a another device which connected to my phone,

how can i get the bluetooth rssi?

i tried to search alot over stackoverflow/google and didnt find any answer, i found just the answer to get rssi of devices wich do not have any connection ! (Get bluetooth signal strength).

but i need the rssi of the connected devices !

can you help me please.

thanks alot


回答1:


I was also looking for a solution and found this:

You can use the readRemoteRssi() function of BluetoothGatt. This will cause an asynchronous call of your BluetoothGattCallback.onReadRemoteRssi



来源:https://stackoverflow.com/questions/26858227/how-to-get-bluetooth-signal-strength-rssi-of-connected-bluetooth-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!