Mbed OS Reference
Loading...
Searching...
No Matches
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

Constructor & Destructor Documentation

◆ EnvironmentalService()

EnvironmentalService constructor.

Parameters
_bleReference to BLE device.

Definition at line 49 of file EnvironmentalService.h.

Member Function Documentation

◆ updateHumidity()

void updateHumidity ( HumidityType_t  newHumidityVal)

Update humidity characteristic.

Parameters
newHumidityValNew humidity measurement.

Definition at line 74 of file EnvironmentalService.h.

◆ updatePressure()

void updatePressure ( PressureType_t  newPressureVal)

Update pressure characteristic.

Parameters
newPressureValNew pressure measurement.

Definition at line 84 of file EnvironmentalService.h.

◆ updateTemperature()

void updateTemperature ( float  newTemperatureVal)

Update temperature characteristic.

Parameters
newTemperatureValNew temperature measurement.

Definition at line 94 of file EnvironmentalService.h.