iOS版BluetoothManager Framwork [英] iOS BluetoothManager Framwork
问题描述
我理解私有API的 BluetoothManager框架的一部分,但我很好奇,如果任何人有任何与它的工作经验。
I understand the BluetoothManager Framework is part of the private API, but I'm curious if anyone has any experience working with it.
我能够打开蓝牙和关闭,但我想获得设备列表。
I'm able to turn Bluetooth on and off, but I'd like to get a list of devices.
调用 pairedDevices
方法似乎写我需要在日志中的所有的信息,但不返回设备阵列。
Calling the pairedDevices
method seems to write all the info I need to the log, but doesn't return an array of devices.
推荐答案
您可以得到设备列表中,通过注册通知发现的设备,然后触发的发现本身。传入的通知对象实际上是一个BluetoothDevice类的对象,你可以用它来提取名称和远程设备的地址。有内置到这个结构没有RSSI数据。我写了一个完整的示例为OS 5.1,请给我一个信息,如果你需要它。
You can get the list of devices, by registering a notification for discovered devices, and then triggering the discovery itself. The incoming notification object is actually a BluetoothDevice object, that you can use to extract name and address of the remote device. There is no RSSI data built into this structure. I wrote a complete sample for OS 5.1, drop me a message if you need it.
这篇关于iOS版BluetoothManager Framwork的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!