问题标签 [ble-txpower]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 使用 Android BLE(蓝牙低功耗)计算距离
我尝试使用 BLE 获取两个移动设备之间的距离,我知道这是一项常见任务,我们可以使用RSSI和txPower找出距离。
txPower但是我在 android BLE中获得价值时遇到了问题。它总是返回 127 (TX_POWER_NOT_PRESENT),虽然我已经添加了AdvertiseData
下面是用于获取的代码块txPower
有人对我的问题有建议吗?任何回应将不胜感激。
android - 如何与信标保持距离
我正在使用Moko H2 信标并使用此库获取信标列表我正在成功获取信标列表
扫描后我收到这种类型的响应
我的要求是如何从远处获得距离
我有一个rssi值和 txPower 计算int txPower = Integer.parseInt(data.substring(2, 4), 16);
那么如何使用这两个值计算距离rssi和txPower
我试过这个但得到错误的结果
适配器
扩展功能
计算距离
请帮助我任何帮助将不胜感激。
