Eddystone Javascript查找UID [英] Eddystone Javascript find UID

查看:144
本文介绍了Eddystone Javascript查找UID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在js中构建一个可检测发出UID的涡流信标的android应用. 我遵循了这个步骤: https://evothings.com/detecting-eddystone- beacons-in-javascript-made-easy/

I am trying to build an android app in js that can detect eddystone beacons emitting UID. I followed this : https://evothings.com/detecting-eddystone-beacons-in-javascript-made-easy/

但是我只能检测到信标html.

But I can only detect beacon html.

我找不到您可以在其中查找UID的行. 有人有主意吗?

I cannot find the line where you can look for UID. Does anyone has an idea ?

推荐答案

您确定您的信标设置为广播Eddystone-UID数据包吗?

Are you sure your beacon is set to broadcast the Eddystone-UID packet?

请记住,Eddystone-UID和Eddystone-URL是两种完全独立的数据包类型,您的信标一次只能广播一个.

The thing to keep in mind is, Eddystone-UID and Eddystone-URL are two completely separate types of packets, and your beacon might only be able to broadcast one at a time.

请与您的信标供应商联系,如何将其设置为广播Eddystone-UID数据包.

Check with your beacon's vendor how to set it to broadcast the Eddystone-UID packet.

您使用的Evothings PhoneGap插件通过单个成功回调.您链接到的教程中的示例应用程序将获取信标,确定其URL或UID(或两者),并且仅

The Evothings PhoneGap plugin you're using returns both Eddystone-URL and Eddystone-UID packets it found, through a single success callback. The example app from the tutorial you've linked to then takes the beacon, figures out if its URL or UID (or both), and only shows what's available.

这篇关于Eddystone Javascript查找UID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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