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

Constructor & Destructor Documentation

EnvironmentalService constructor.

Parameters
_bleReference to BLE device.

Definition at line 42 of file EnvironmentalService.h.

Member Function Documentation

void updateHumidity ( HumidityType_t  newHumidityVal)

Update humidity characteristic.

Parameters
newHumidityValNew humidity measurement.

Definition at line 67 of file EnvironmentalService.h.

void updatePressure ( PressureType_t  newPressureVal)

Update pressure characteristic.

Parameters
newPressureValNew pressure measurement.

Definition at line 77 of file EnvironmentalService.h.

void updateTemperature ( float  newTemperatureVal)

Update temperature characteristic.

Parameters
newTemperatureValNew temperature measurement.

Definition at line 87 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.