Sto*_*oph 5 iphone bluetooth iphone-privateapi ios
我一直在使用iOS 5.0中的私有BluetoothManager框架,我已经能够成功启动/停止蓝牙并获得设备列表,但我无法弄清楚如何启动配对.
我最接近的是尝试连接使用:
[[BluetoothManager sharedInstance] connectDevice:dev];
Run Code Online (Sandbox Code Playgroud)
其中dev是扫描期间发现的BluetoothDevice对象.
这似乎试图配对(当我尝试连接到我的iMac时,配对对话框会暂时出现),但很快就会失败.
我注意到BluetoothManager.h包含一个可能有帮助的BTPairingAgentImpl结构,但我不知道这个结构包含什么或如何使用它.
任何帮助将不胜感激.
| 归档时间: |
|
| 查看次数: |
2096 次 |
| 最近记录: |