简体   繁体   English

如何设置将蓝牙与OS-X配对的名称

[英]How to set a name for pairing bluetooth with OS-X

I'm using my Mac as a bluetooth central manager (using CBCentralManager) and my iPhone as a LE peripheral. 我将Mac用作蓝牙中央管理器(使用CBCentralManager),将iPhone用作LE外设。

Problem is when I'm making a secure connection between them I get on the iPhone screen a general name (showing the network MAC) and not a name that have a meaning. 问题是当我在它们之间建立安全连接时,我在iPhone屏幕上得到一个通用名称(显示网络MAC),而不是一个有意义的名称。 On the Mac I can see the service I'm advertising from the peripheral so it's fine. 在Mac上,我可以从外围设备看到我正在宣传的服务,所以很好。

Attached is a screenshot of what I get (I've deleted the MAC address from screenshot). 附件是我得到的屏幕截图(我已经从屏幕截图中删除了MAC地址)。

iPhone名称的屏幕截图

How can I change this general name (if there is an option to) to something that has more meaning? 如何将此通用名称(如果可以选择)更改为更有意义的名称?

Thanks! 谢谢!

名称由您要连接的设备设置...每个设备都可以修改自己的名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM