谷歌附近的消息 - 取消设备之间的初始链接 [英] Google Nearby Messages - Cancel initial link between devices

查看:131
本文介绍了谷歌附近的消息 - 取消设备之间的初始链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序来测试Google Nearby Messages API。对于该测试,我使用DISTANCE_TYPE_EARSHOT。



根据此线程附近的API的策略.DISTANCE _TYPE_ EARSHOT似乎不会限制邮件邻近度,在设备之间的初始链接之后,它们可以无论距离如何都可以接收10分钟的消息。我想知道这个10分钟的限制是否可以中断(为了防止设备在距离另一个设备的距离大于5英尺时收到消息 - EARSHOT)。

或者,是否有办法获得设备之间的距离?



谢谢。

解决方案

(我在附近的API上工作)



今天,Nearby不直接暴露距离,也不提供以编程方式强制解除配对设备。我们已经听到人们都希望这两件事情,这些功能都在我们的视线之内,但我们无法对此进行评论或承诺。

作为手动破解,您可以清除Google Play服务上的数据,以取消配对设备。



您可以通过测量BLE RSSI获取距离近似距离其中一个设备能够进行BLE广告。这对设备的使用方式,天线增益和环境因素很敏感,但比随机的要好。不过,没有一个简单的卷尺API。

I'm building a app to test Google Nearby Messages API. For that test, I'm using DISTANCE_TYPE_EARSHOT.

According to this thread Nearby API's Strategy.DISTANCE _TYPE_ EARSHOT doesn't seem to restrict message proximity , after the initial link between devices, they can receive messages for 10 minutes regardless of distance. I would like to know if this 10 minute limit can be interrupted (in order to prevent that a device can receive a message when its distance to another device is more than ~5ft - EARSHOT).

Alternatively, is there a way to get the distance between devices?

Thank you.

解决方案

(I work on the Nearby API)

Today, Nearby doesn't expose distance directly nor does it provide a way to force "un-pairing" of devices programmatically. We've heard folks want both of these things, the features are on our radar, but we can't comment or commit beyond that.

As a manual hack, you can clear data on "Google Play Services" to un-pair devices.

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.

这篇关于谷歌附近的消息 - 取消设备之间的初始链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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