【发布时间】:2020-10-30 06:32:08
【问题描述】:
我正在开发一个蓝牙模块。我需要这些功能-
1>device discovery,
2>device connection,
3> inter-device communication,
4>RSSI to know the approximate distance between them(it need not be accurate).
我之前使用“bluez”堆栈 API 开发了该功能。但是我没有找到特征RSSI来知道它们之间的大致距离(它不需要准确)。
所以,我想要 2 个选项-
1> to use an alternative to "bluez" or
2> to request "bluez" to include RSSI module.
我正在使用 C++ 和“GTK”在“ubuntu”Linux 环境中进行开发。
请建议我该怎么做?
我只需要使用 c++ 以任何方式获取 2 个设备之间的距离,如果有任何 linux 命令,也许我可以使用 system() 或其替代方法。我希望检查设备之间的距离是否小于 10 英尺。或大于 10 英尺。这是我唯一需要的。
【问题讨论】:
标签: c++ ubuntu bluetooth bluez