Corebluetooth,如何获得独特的UUID?

编程入门 行业动态 更新时间:2024-10-25 10:28:10
本文介绍了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?

本文发布于:2023-10-28 05:25:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1535657.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何获得   独特   Corebluetooth   UUID

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!