iOS sample to connect a Bluetooth with MFI

Douglas Nassif Roma Junior picture Douglas Nassif Roma Junior · Dec 12, 2014 · Viewed 9.4k times · Source

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?

Answer

d370urn3ur picture d370urn3ur · Feb 5, 2015

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.