TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 8 of 36
Copyright © 2011-2015 Texas Instruments, Inc
bpServiceCB: This is the blood pressure service callback. It handles enabling or
disabling measurements.
TimeAppPairStateCB: This is a GAPBOND callback to handle pairing states.
TimeAppPasscodeCB: Returns the passcode of 0.
2.2.4 Sending Blood Pressure Measurement Indications
The application sends indication of the blood pressure measurement when configured to do so by
the peer device.
When the peer device configures the blood pressure measurement for indication the application
will receive a blood pressure service callback. The application starts a timer to begin periodic
simulated blood pressure measurements. When the timer expires the application calls
bpSendStoredMeas to build and send a measurement using the blood pressure service API. The
application expects the peer device to send back an indication confirmation.
2.2.5 Sending Intermediate Measurement Notifications
The application sends notification of the blood pressure measurement when configured to do so
by the peer device.
When the peer device configures the blood pressure measurement for notification the application
will receive a blood pressure service callback. The application starts a timer to begin periodic
simulated blood pressure measurements. When the timer expires the application calls
bloodPressureIMeasNotify to build and send a measurement using the blood pressure service
API.
2.2.6 Blood Pressure Measurement
Blood Pressure Measurement
Value
3 Health Thermometer
This sample project implements a Health Thermometer and Device Information profile in a BLE
peripheral device to provide an example health thermometer application using simulated
measurement data. The application implements the "Sensor" role of the Health Thermometer
profile. The project is based on the adopted profile and service specifications for Health
Thermometer (see [4] and [5]). The project also includes the Device Information Service ([12]).
The project can be opened with the following IAR workspace file:
C:\TexasInstruments\BLE-CC254x-1.4.1\Projects\ble\Thermometer\CC2540DB\thermometer.eww
3.1 Project Overview
The project structure is very similar to that of the SimpleBLEPeripheral project. The APP directory
contains the application source code and header files. The project contains two configurations.
CC2540DK-MINI Keyfob Slave: using the keyfob hardware platform.
CC2540 Slave: using the SmartRF platform.
3.1.1 User Interface
There are two button inputs for this application.
KeyFob Right | SmartRF Joystick Right
When not connected and not configured to take measurements, this button is used to toggle
advertising on and off.