문제

As shown in the Apple documentation, communication with a certfied accessory (certified by apple) can be made through te EAAccessory Framework. But I am getting a little bit confused because some posts tell me that it can also be made through CoreBluetooth.

I also read that CoreBlueTooth is only supported by iOS 5 and iPhone 4S may communicate with an external accessory.

The question is "Should I use both CoreBluetooth and EAAccessory Framework (I think in this case I will have to test on a combination of the device model and iOS version) or will the EAAccessory Framework be enough?".

도움이 되었습니까?

해결책

The CoreBluetooth Framework is only used for communication with Bluetooth Low Energy enabled devices. The EAAccessory Framework is used for standard Bluetooth connections. One framework, as of this writing, requires you to be a certified MFI developer with Apple and requires special hardware (EAAccessory). The other does not, but requires Bluetooth Low Energy enabled devices (iPhone 4S) and iOS 5.0+

As to wether you should support both, that depends entirely on the use of the accessory. Each spec has its benefits and draw-backs, it is up to you to determine which best fits.

Hope this helps!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top