Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Public Types | Public Member Functions
HealthThermometerService Class Reference

BLE Health Thermometer Service. More...

#include <HealthThermometerService.h>

Public Types

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. More...
 
void updateTemperature (float temperature)
 Update the temperature being broadcast. More...
 
void updateLocation (SensorLocation_t loc)
 Update the location. More...
 

Detailed Description

BLE Health Thermometer Service.

This service provides the location of the thermometer and the temperature. Service: https://developer.bluetooth.org/gatt/profiles/Pages/ProfileViewer.aspx?u=org.bluetooth.profile.health_thermometer.xml Temperature Measurement: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature_measurement.xml Temperature Type: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature_type.xml

Definition at line 35 of file HealthThermometerService.h.

Member Enumeration Documentation

Location of sensor on the body.

Enumerator
LOCATION_ARMPIT 

Armpit.

LOCATION_BODY 

Body.

LOCATION_EAR 

Ear.

LOCATION_FINGER 

Finger.

LOCATION_GI_TRACT 

GI tract

LOCATION_MOUTH 

Mouth.

LOCATION_RECTUM 

Rectum.

LOCATION_TOE 

Toe.

LOCATION_EAR_DRUM 

Eardrum.

Definition at line 40 of file HealthThermometerService.h.

Constructor & Destructor Documentation

HealthThermometerService ( BLE _ble,
float  initialTemp,
uint8_t  _location 
)

Add the Health Thermometer Service to an existing BLE object, initialize with temperature and location.

Parameters
[in]_bleReference to the BLE device.
[in]initialTempInitial value in celsius.
[in]_location

Definition at line 59 of file HealthThermometerService.h.

Member Function Documentation

void updateLocation ( SensorLocation_t  loc)

Update the location.

Parameters
locNew location value.

Definition at line 88 of file HealthThermometerService.h.

void updateTemperature ( float  temperature)

Update the temperature being broadcast.

Parameters
[in]temperatureFloating point value of the temperature.

Definition at line 78 of file HealthThermometerService.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.