if discover a new device then push notification to the user.
how to start and any resources/sample code?
if discover a new device then push notification to the user. how to start
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All three previous answers are incorrect. iOS5 introduced Core Bluetooth framework.
However, this framework is BT 4.0 LE only; none-the-less Bluetooth.
Here also is the PDF reference: http://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/CoreBluetooth_Framework.pdf
Example
Your class must conform to the
CBCentralManagerDelegateandCBPeripheralDelegateprotocols.That’s basically to get you started on scanning for peripherals. You will also need to implement the
CBCentralManagerDelegatemethods and a few others, I suggest reading the docs: