iOS system to Bluetooth external devices in the iphone4 before the Bluetooth 2.0, need to pass the Apple audit, according to statistical pass rate only about 2%, now Bluetooth 2.0 is basically in the elimination state, so here is not considered.
Now iphone4s devices (including iphone4s, IPhone5, IPhone5S, Iphone6, iphone6s) are using Bluetooth 4.0, so let's talk about the use of Bluetooth 4.0 external devices.
Bluetooth 4.0 device in use, do not need to pass the Apple external device audit, so it will be relatively easy to use!
In the use of the time we need to import corebluetooth.framework, the development of the time is generally divided into the following several steps:
First step: Establish a central role
#import<CoreBluetooth/CoreBluetooth.h> implement <cbcentralmanagerdelegate, Cbperipheraldelegate> these two
Agreement
Step Two: Scan external devices
Step three: Link external devices
Fourth step: Scan the Bluetooth 4.0 service and features
Because Bluetooth 4.0 has a lot of services and features, we do the following to scan these services and features, and the notice feature of our service features open, where we should already know the Bluetooth device to link the service UUID and feature UUID, This is to be obtained by the maker or service provider of the Bluetooth device.
Fifth step: Communicate with the Bluetooth device
Obtaining Bluetooth data can be processed according to the data transfer rules developed by the manufacturer when developing the Bluetooth device.
With the emergence of health equipment such as sports bracelet, the development of Bluetooth development problems will be more and more, so for the development of Bluetooth devices must have a certain knowledge of the best reserves!
Jerry Education
Source:http://www.cnblogs.com/jerehedu/
Copyright Notice: The copyright of this article belongs to cigarettes DeskJerry EducationSection Technology Co., Ltd. and blog Park are shared, welcome reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Technical Consultation:
Bluetooth external device for iOS system