CoreBluetooth Temperature Sensor
Version 1.0, 2012-04-11
Sample using CoreBluetooth to connect to a Bluetooth LE Peripheral and read/write characteristics on it.
iOS SDK 5.1 or greater, Xcode 4.3 or greater
iOS 5.1 or later, Bluetooth LE Capable Device
A simple iOS iPhone application that demonstrates how to use the CoreBluetooth Framework to connect to a Bluetooth LE peripheral and read, write and be notified of changes to the characteristics of the peripheral.
The sample follows setting up the Central Manager, scanning for peripherals that show particular services, connecting to found peripherals, reading values from characteristics, registering for notifications from characteristics and writing to characteristics.
The service presented is a Temperature sensor that sends alert notifications when the temperature crosses a high or low threshold that can be set by the user.