3
votes

I have an application for Android that communicates via Bluetooth with a hardware we develop. Now I need to develop an application for iOS that connects with the same hardware via bluetooth. This hardware makes serial communication via Bluetooth.

I've been researching quite recently and found two outputs: - Bluetooth Low Energy (BLE). - Bluetooth with "MFI Program".

Analyzing the smartphone today, both Android as iOS, the best option would be the MFI. Due to availability on older smartphones. Even already started the enrollment process over MFI program.

My question focuses on the development on iOS. And my question is:

Looking for Objective-C. Is there a difference between connecting to a Bluetooth Low Energy or MFI? Could someone show me an example of connecting via Bluetooth MFI?

2

2 Answers

5
votes

As I understand it, devices enrolled in the MFi program use the EAAccessory framework, not CoreBluetooth. Documentation is here: External Accessory Programming Topics.

Sample code here.

1
votes

MFI is for Bluetooth device Hardware.

Coming to connecting to BLE device from iOS devices, you have to use CoreBluetooth framework.

http://www.raywenderlich.com/52080/introduction-core-bluetooth-building-heart-rate-monitor

Check this link.