Bluetooth connectivity examples for iPhone

I tried to find examples for communicating with Bluetooth devices on iOS and was close. As far as I understand, SPP is not yet supported. At the simplest level, I would like to send a simple 1 or 0 signal to the Bluetooth device that I create. (This is a Bluetooth switch that will turn something on and off). Is there a way to skillfully do this through HID or HFP profiles?

+5
source share
4 answers

The short answer to your question is that you cannot connect to an arbitrary Bluetooth device that may happen, you can only connect to a Bluetooth device that appears through Apple's licensing program (for example, the “Made for iPod / iPhone” label). From the Apple documentation:

Q: [The structure of the external accessory allows] my application to communicate with Bluetooth devices. So why does my app not see the Bluetooth accessory next to my iPhone?
A: The structure of the external accessory is designed so that iOS applications can only communicate with hardware accessories developed as part of the Apple MFi licensing program.

, API Bluetooth iOS: Bluetooth, EAF " MFi", " ". , - , -

  • App Store.

, - .

MFi, , , , , - / MFi , . , .

, Zeroxide ( Bluetooth iOS, Apple , , API- ), , .

: ​​ Apple Bluetooth. , , , Bluetooth LE.

+4

, iOS, External Accessory Framework . , Apple Made for Ipod (MFI). , .

+2

Bluetooth ( BLE), PAIR iOS Bluetooth ( ). , .

+1

. , MFI , iphone, Bluetooth - HFP, HID ( , iAP). bluetooth- . MFi? NO. .

-2

All Articles