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

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

问题描述

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

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

我有两台 iPad2 和一台蓝牙 4.0 设备.

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

蓝牙设备的UUID与两个iPad不同.

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

如下图所示.

有没有办法在 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天全站免登陆