Corebluetooth,如何获得独特的UUID? [英] Corebluetooth, How to get a unique UUID?

查看:199
本文介绍了Corebluetooth,如何获得独特的UUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是CBPeripheral的UUID似乎不是唯一的。

my question is the UUID of CBPeripheral seems not to be unique.

我有两个iPad2和一个bluetooth4.0设备。

I have two iPad2, and a bluetooth4.0 device.

蓝牙设备的UUID与两台iPad不同。

The UUID of the bluetooth device differs from the two iPad.

如下图所示。

As shown in following images.

有没有办法在iOS设备上找到蓝牙设备的唯一UUID?

Is there any way to find a unique UUID of bluetooth device on iOS device?

我需要找到一个在不同设备之间不会改变的UUID或mac地址。

I need to find a UUID or mac address that would not change between different devices.

非常感谢,请帮帮我!!

Thank you very much, please help me!!

推荐答案

周边使用随机可解析的地址,该地址至少每15分钟更改一次,此时外围设备将显示为新的。要更改此行为,您需要与外围设备配对,然后您将看到UUID并且它将是持久的。

The peripheral uses a random resolvable address that changes at least every 15 minutes, at which point the peripheral will appear to be new. To change this behavior you need to pair with the peripheral, then you will see the UUID and it will be persistent.

这篇关于Corebluetooth,如何获得独特的UUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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