外围BLE设备的唯一标识符 [英] Unique identifier for peripheral BLE device

查看:74
本文介绍了外围BLE设备的唯一标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有外围设备BLE设备,我需要一些标识符以便以后与另一部iPhone共享.示例我将iPhone'A'连接到外围设备. iPhone'A'将外围设备的标识符保存到数据库中,以后我可以轻松地使用iPhone'B'并连接到由该标识符找到的外围设备.

So I have peripheral BLE device and I need some identifier for it to later share with another iPhone. Example I connect with iPhone 'A' to peripheral. iPhone 'A' saves peripheral's identifier to database and later I easily can take iPhone 'B' and connect to the peripheral found by this identifier.

现在有UUID每个iPhone-peripheral连接都会有什么变化,但MAC Address不可用.你有什么建议?

Now there is UUID what changes for every iPhone-peripheral connection, but MAC Address is not available. What could you suggest?

推荐答案

如果您自己不制造外围设备,则无法在不同的iOS设备上唯一标识外围设备.这正是Apple希望的样子,因为这意味着开发人员无法根据设备地址跟踪用户的位置或移动方式.这将是一个隐私问题.

If you do not manufacture the peripheral yourself then you can not uniquely identify peripherals across different iOS devices. This is exactly how Apple wants it to be since it means that developers can't track user's locations or movement patterns based on device addresses. It would be a privacy concern.

如果您自己制造外围设备,那么您可以做任何想做的事情.例如:使用自定义服务uuid​​,将uuid添加到广告中的制造商数据中,设置唯一的广告名称,等等.但是,如果所有这些操作的核心目的是跟踪您的用户,那么我猜苹果可能会拒绝您的提交.

If you manufacture the peripheral yourself then you can do pretty much whatever you want. For example: Use a custom Service uuid, add uuid to manufacturer data in advertisement, set unique advertisement names, etc etc.. But if the core purpose of all this is to track your user then I would guess that Apple might deny your submission.

这篇关于外围BLE设备的唯一标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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