简体   繁体   中英

iOS Bluetooth Low Energy connection with external device

I made a simple device made by a friend with some sensors and a bluetooth module. Right now the module is 3.0 so I know it's next to impossible to connect with my iPhone to it.

My questions is what specs and settings are required for a Bluetooth Low Energy module to connect with an iPhone so that I can receive data from it ?

  1. First of all, you need to connect to the device
  2. Next, once connected, you need to start looking for the device services
  3. After that, when you discover your main service, or the service you want, you have to look for its Characteristics
  4. Finally, once you discover the wanted characteristic, you need to subscribe to it by using the

[myPeripheral setNotifyValue:YES forCharacteristic:aChar];

Actually, It too long to explain all the detail, take a look at the official documentation, and its really something.

https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothOverview/CoreBluetoothOverview.html#//apple_ref/doc/uid/TP40013257-CH2-SW1

good luck ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM