简体   繁体   English

从WebApp设置iBeacons

[英]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.

相关问题 如何从Web应用程序导航到手机设置屏幕 - How to navigate to phone setting screen from a webapp 在设计iPhone的网站/网络应用程序时,如何防止点击输入将页面向上推? - When designing a website/webapp for iphone, how do you prevent tapping on an input from pushing your page up? 关于在弹出窗口中将Web应用全屏显示的想法 - Thoughts on making a webapp fullscreen in a pop-up 从包json脚本设置process.env变量 - Setting up process.env variable from package json script 设置数据库javascript的html输入数字的最大值 - setting up the max value for html input number from database javascript 来自外部文件的 json 数组未在反应中设置状态 - Array of json from external file is not setting up the state in react 使用 Thymeleaf 从 Spring model 设置一个 JavaScript 变量 - Setting up a JavaScript variable from Spring model by using Thymeleaf 设置新域后无法从Mailgun发送电子邮件 - Unable to send emails from Mailgun after setting up new domain 从javascript中的Wordpress REST API正确设置数组 - Properly setting up an Array from Wordpress REST API in javascript 设置一个onEdit()可安装触发器以识别来自IMPORTRANGE数据的编辑 - Setting up an onEdit() installable trigger to recognize edits from IMPORTRANGE data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM