Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HealthThermometerService Class Reference
BLE Health Thermometer Service. More...
#include <HealthThermometerService.h>
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 } |
Location of sensor on the body. More... | |
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. |
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 29 of file HealthThermometerService.h.
Member Enumeration Documentation
enum SensorLocation_t |
Location of sensor on the body.
- Enumerator:
Definition at line 34 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] _ble Reference to the BLE device. [in] initialTemp Initial value in celsius. [in] _location
Definition at line 53 of file HealthThermometerService.h.
Member Function Documentation
void updateLocation | ( | SensorLocation_t | loc ) |
Update the location.
- Parameters:
-
loc New location value.
Definition at line 84 of file HealthThermometerService.h.
void updateTemperature | ( | float | temperature ) |
Update the temperature being broadcast.
- Parameters:
-
[in] temperature Floating point value of the temperature.
Definition at line 72 of file HealthThermometerService.h.
Generated on Tue Jul 12 2022 12:46:57 by
