如何在 OS X 上获取设备蓝牙地址?
我已经查看了 IOBluetooth 框架大概十几次了,但我一生都找不到一种方法来检索当前设备的蓝牙设备地址。我编写了一个应用程序,利用 IOBluetoothDeviceInquiry 扫描范围内的设备,但这似乎没有提供进行扫描的设备的地址。
如何以编程方式实现这一点? (无需打开 System Profiler)
I've looked over the IOBluetooth framework what feels like a dozen times, but I can't for the life of me find a way to retrieve the Bluetooth device address for the current device. I've written an application that scans for devices in range utilizing IOBluetoothDeviceInquiry, but this doesn't seem to offer up the address of the device doing the scanning.
How might this be accomplished programatically? (Without opening up System Profiler)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或
getAddress:
(如果您需要BluetoothDeviceAddress
)。or
getAddress:
if you want aBluetoothDeviceAddress
.