【发布时间】:2017-11-01 12:46:20
【问题描述】:
我正在使用苹果的 EADemo
这基本上是外部附件框架演示代码
我的 info.plist 有
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>bluetooth-central</string>
<string>bluetooth-peripheral</string>
<string>external-accessory</string>
<string>fetch</string>
<string>location</string>
<string>newsstand-content</string>
<string>remote-notification</string>
</array>
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>com.apple.p1</string>
<string>com.apple.p2</string>
</array>
_eaSessionController = [EADSessionController sharedController];
_accessoryList = [[NSMutableArray alloc] initWithArray:[[EAAccessoryManager sharedAccessoryManager] connectedAccessories]];
if ([_accessoryList count] == 0) {
[_noExternalAccessoriesPosterView setHidden:NO];
} else {
[_noExternalAccessoriesPosterView setHidden:YES];
}
计数始终为 0。我已将 Mac Mini 和 iPod 与我正在使用的设备配对,我相信这两个显然是 MFi 投诉。
我错过了什么?有人可以帮忙吗?
【问题讨论】:
-
如果您提供设备的详细信息可能会有所帮助。另外,它确实是经典蓝牙设备,而不是 BLE 设备?
-
它不是 BLE 设备。它是 iPod。虽然我可以将它配置为BLE外设,但我的目标是连接MFi经典蓝牙配件,如扬声器或耳机等。所以我想探索经典的蓝牙操作。
标签: ios objective-c bluetooth external-accessory