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 12:74a45a643722, committed 2015-04-30
- Comitter:
- rgrover1
- Date:
- Thu Apr 30 08:37:26 2015 +0000
- Parent:
- 11:3aaf4e20ca40
- Child:
- 13:30f6f65629b5
- Commit message:
- updating underlying libraries to v8.0 of Nordic SDK.
Changed in this revision
--- a/BLE_API.lib Mon Apr 20 08:06:35 2015 +0000 +++ b/BLE_API.lib Thu Apr 30 08:37:26 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8a104d9d80c1 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4a42f777161f
--- a/mbed.bld Mon Apr 20 08:06:35 2015 +0000 +++ b/mbed.bld Thu Apr 30 08:37:26 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file
--- a/nRF51822.lib Mon Apr 20 08:06:35 2015 +0000 +++ b/nRF51822.lib Thu Apr 30 08:37:26 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#be2a122ed2f7 +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#3ba3e377b972