BLE demo for the Health-Thermometer service.
Dependencies: BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1
This example demonstrates how to use the Health Thermometer Service. The Health Thermometer service reports two pieces of information, Temperature and Sensor Location.
API
Import library
Public Types |
|
enum |
SensorLocation_t
{
LOCATION_ARMPIT = 1, LOCATION_BODY , LOCATION_EAR , LOCATION_FINGER , LOCATION_GI_TRACT , LOCATION_MOUTH , LOCATION_RECTUM , LOCATION_TOE , LOCATION_EAR_DRUM } |
Public Member Functions |
|
HealthThermometerService ( BLE &_ble, float initialTemp, uint8_t _location) | |
Add the Health Thermometer Service to an existing
BLE
object, initialize with temperature and location.
|
|
void | updateTemperature (float temperature) |
Update the temperature being broadcast.
|
|
void | updateLocation ( SensorLocation_t loc) |
Update the location.
|
Technical Details
Further Technical Details can be found at the following links
- Temperature Service : Gatt profile details from bluetooth.org
- Temperature Measurement : Gatt Characteristic details
- Temperature Type : Gatt Characteristic details
Revision 5:349c49d015f5, committed 2014-09-30
- Comitter:
- rgrover1
- Date:
- Tue Sep 30 02:22:00 2014 +0000
- Parent:
- 4:83c07b0e93d6
- Child:
- 6:dbddaa71413c
- Commit message:
- updating underlying libraries
Changed in this revision
BLE_API.lib | Show annotated file Show diff for this revision Revisions of this file |
nRF51822.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/BLE_API.lib Mon Sep 22 10:47:20 2014 +0000 +++ b/BLE_API.lib Tue Sep 30 02:22:00 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#620d28e7a1ba +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4b68a819ab4f
--- a/nRF51822.lib Mon Sep 22 10:47:20 2014 +0000 +++ b/nRF51822.lib Tue Sep 30 02:22:00 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#b3680699d9a4 +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#936d81c963fe