如何获取连接的蓝牙设备的蓝牙信号强度(RSSI)? [英] How to Get bluetooth signal strength (rssi) of connected bluetooth devices?

查看:1615
本文介绍了如何获取连接的蓝牙设备的蓝牙信号强度(RSSI)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取连接到手机的另一台设备的蓝牙rssi,

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

我如何获得蓝牙rssi?

how can i get the bluetooth rssi?

我试图在stackoverflow/google上进行大量搜索,但未找到任何答案,我只是找到了使设备的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).

但是我需要所连接设备的rssi!

but i need the rssi of the connected devices !

你能帮我吗?

非常感谢

推荐答案

我也在寻找解决方案,发现了这一点:

I was also looking for a solution and found this:

您可以使用 readRemoteRssi() BluetoothGatt的功能.这将导致您的 BluetoothGattCallback.onReadRemoteRssi

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

这篇关于如何获取连接的蓝牙设备的蓝牙信号强度(RSSI)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆