Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
EnvironmentalService Class Reference

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...

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 36 of file EnvironmentalService.h.

Constructor & Destructor Documentation

EnvironmentalService constructor.

_bleReference to BLE device.

Definition at line 46 of file EnvironmentalService.h.

Member Function Documentation

void updateHumidity ( HumidityType_t  newHumidityVal)

Update humidity characteristic.

newHumidityValNew humidity measurement.

Definition at line 71 of file EnvironmentalService.h.

void updatePressure ( PressureType_t  newPressureVal)

Update pressure characteristic.

newPressureValNew pressure measurement.

Definition at line 81 of file EnvironmentalService.h.

void updateTemperature ( float  newTemperatureVal)

Update temperature characteristic.

newTemperatureValNew temperature measurement.

Definition at line 91 of file EnvironmentalService.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.