BLE Environmental Service. More...
#include <EnvironmentalService.h>
Public Member Functions | |
EnvironmentalService (BLE &_ble) | |
EnvironmentalService constructor. More... | |
void | updateHumidity (HumidityType_t newHumidityVal) |
Update humidity characteristic. More... | |
void | updatePressure (PressureType_t newPressureVal) |
Update pressure characteristic. More... | |
void | updateTemperature (float newTemperatureVal) |
Update temperature characteristic. More... | |
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 36 of file EnvironmentalService.h.
EnvironmentalService | ( | BLE & | _ble | ) |
EnvironmentalService constructor.
_ble | Reference to BLE device. |
Definition at line 46 of file EnvironmentalService.h.
void updateHumidity | ( | HumidityType_t | newHumidityVal | ) |
Update humidity characteristic.
newHumidityVal | New humidity measurement. |
Definition at line 71 of file EnvironmentalService.h.
void updatePressure | ( | PressureType_t | newPressureVal | ) |
Update pressure characteristic.
newPressureVal | New pressure measurement. |
Definition at line 81 of file EnvironmentalService.h.
void updateTemperature | ( | float | newTemperatureVal | ) |
Update temperature characteristic.
newTemperatureVal | New temperature measurement. |
Definition at line 91 of file EnvironmentalService.h.