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

History

Update the libraries. default tip

2016-09-20, by Vincent Coubard [Tue, 20 Sep 2016 13:47:58 +0100] rev 17

Update the libraries.
Add st shield support.


Update libraries to the latest revision.

2016-04-11, by vcoubard [Mon, 11 Apr 2016 16:29:09 +0000] rev 16

Update libraries to the latest revision.


Update example to comply with latest BLE API changes.

2015-12-30, by andresag [Wed, 30 Dec 2015 09:41:47 +0000] rev 15

Update example to comply with latest BLE API changes.


updating underlying libraries.

2015-09-29, by rgrover1 [Tue, 29 Sep 2015 12:10:38 +0000] rev 14

updating underlying libraries.


update to the latest of the underlying libraries.

2015-06-20, by rgrover1 [Sat, 20 Jun 2015 23:46:17 +0000] rev 13

update to the latest of the underlying libraries.


updating underlying libraries to v8.0 of Nordic SDK.

2015-04-30, by rgrover1 [Thu, 30 Apr 2015 08:37:26 +0000] rev 12

updating underlying libraries to v8.0 of Nordic SDK.


updating underlying libraries.

2015-04-20, by rgrover1 [Mon, 20 Apr 2015 08:06:35 +0000] rev 11

updating underlying libraries.


simplified main.cpp

2015-04-01, by rgrover1 [Wed, 01 Apr 2015 08:39:00 +0000] rev 10

simplified main.cpp


updating underlying libraries.

2015-03-24, by rgrover1 [Tue, 24 Mar 2015 08:16:30 +0000] rev 9

updating underlying libraries.


Simplified the Example, removed the external Temperature sensor

2014-12-09, by mbedAustin [Tue, 09 Dec 2014 22:23:42 +0000] rev 8

Simplified the Example, removed the external Temperature sensor