gpt4 book ai didi

android - 谷歌附近连接 API : measure signal strength

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:36:16 26 4
gpt4 key购买 nike

最近我发现了一种看似很酷的设备间通信方式,使用Google Nearby API .浏览文档并没有回答我的问题 - 是否可以实时测量连接信号强度,或者我应该发明一些东西,例如测量发送和接收数据或其他东西的时间?

谢谢。

最佳答案

作为线程 Google Nearby Messages - Cancel initial link between devices 中所述的 Nearby API 开发人员:

Today, Nearby doesn't expose distance directly

他建议改用BLE RSII

You can get a rough approximation of distance by measuring BLE RSSI if one of the devices is capable of BLE advertising. This will be sensitive to how the device is held, antenna gain and environmental factors but better than random.

There's not a straight-forward "tape measure" API, though.

关于android - 谷歌附近连接 API : measure signal strength,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32787581/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com