[英]Setting up iBeacons from webapp
For a school project my friend and I are trying to set up iBeacons by using a webapp. 对于一个学校项目,我和我的朋友正在尝试使用Webapp设置iBeacons。 We want to use a simple form on our webapp that tells the beacon what data to send to the people who are in proximity of the beacon.
我们希望在我们的Web应用程序上使用一个简单的表单,告诉信标将什么数据发送给信标附近的人们。
For example; 例如; I add an event to the beacon by using the webapp and as I add it it gets add to the beacon.
我通过使用webapp向信标添加事件,并在添加事件时将其添加到信标。 The beacon sends out notifications to the users until I add a new event to the beacon.
信标向用户发送通知,直到我向信标添加新事件。
Would this be possible to do? 这可能吗?
Beacons do not send data other than a three part identifier (a 16 byte proximity UUID that uniquely identifiers your organization or company, a 2 byte major and a two byte minor.) It does not really make sense for the web app to alter the beacon transmission itself because it sends so little data. 信标除了三部分标识符(唯一标识您的组织或公司的16字节邻近UUID,2字节主字节和2字节副字节的唯一标识符)之外,不会发送其他数据。对于Web应用程序更改信标,实际上没有任何意义传输本身,因为它发送的数据很少。 It also doesn't make much sense because beacons are generally designed to be read only.
这也没有太大意义,因为信标通常被设计为只读。
Another way to accomplish what you want with a web app is to build a lookup web service that returns the information to display for the beacon's three part beacon identifier. 完成Web应用程序所需的另一种方法是构建查找Web服务,该服务返回信息以显示信标的三部分信标标识符。
An app on iOS would call this web service to get a display message for a beacon with a given uuid/major/minor after it detects it. iOS上的应用程序检测到给定的uuid / major / minor后,将调用此Web服务以获取信标的显示消息。 It could use the results to display a notification.
它可以使用结果显示通知。
A web page in your web app would allow changing the display message for a given set of beacon identntifiers. Web应用程序中的网页将允许更改给定信标标识符集的显示消息。
This would accomplish what you want in a different way. 这将以不同的方式完成您想要的工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.