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.
EnvironmentalService Class Reference
BLE Environmental Service. More...
#include <EnvironmentalService.h>
Public Member Functions | |
EnvironmentalService (BLE &_ble) | |
EnvironmentalService constructor. | |
void | updateHumidity (HumidityType_t newHumidityVal) |
Update humidity characteristic. | |
void | updatePressure (PressureType_t newPressureVal) |
Update pressure characteristic. | |
void | updateTemperature (float newTemperatureVal) |
Update temperature characteristic. |
Detailed Description
BLE Environmental Service.
This service provides temperature, humidity and pressure measurement. Service: https://developer.bluetooth.org/gatt/services/Pages/ServiceViewer.aspx?u=org.bluetooth.service.environmental_sensing.xml Temperature: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature.xml Humidity: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.humidity.xml Pressure: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.pressure.xml
Definition at line 30 of file EnvironmentalService.h.
Constructor & Destructor Documentation
EnvironmentalService | ( | BLE & | _ble ) |
EnvironmentalService constructor.
- Parameters:
-
_ble Reference to BLE device.
Definition at line 40 of file EnvironmentalService.h.
Member Function Documentation
void updateHumidity | ( | HumidityType_t | newHumidityVal ) |
Update humidity characteristic.
- Parameters:
-
newHumidityVal New humidity measurement.
Definition at line 65 of file EnvironmentalService.h.
void updatePressure | ( | PressureType_t | newPressureVal ) |
Update pressure characteristic.
- Parameters:
-
newPressureVal New pressure measurement.
Definition at line 75 of file EnvironmentalService.h.
void updateTemperature | ( | float | newTemperatureVal ) |
Update temperature characteristic.
- Parameters:
-
newTemperatureVal New temperature measurement.
Definition at line 85 of file EnvironmentalService.h.
Generated on Tue Jul 12 2022 12:22:43 by
