Green Building Team / Mbed 2 deprecated BLE_GreenYourLife_STM32

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed

Embed: (wiki syntax)

« Back to documentation index

GreenBuildingService Class Reference

GreenBuildingService Class Reference

Custom service derived from mbed's BLE Environmental Service. More...

#include <GreenBuildingService.h>

Data Structures

struct  PlantEnvironmentType_t
 Plant environment data type. More...

Public Member Functions

 GreenBuildingService (BLE &_ble)
 GreenBuildingService constructor.
void updatePlantEnvironment (PlantEnvironmentType_t newPlantEnvironmentVal)
 Update plant environment characteristic.

Static Public Attributes

static const uint16_t UUID_GREEN_BUILDING_SERVICE = 0xEB00
 Green Building service UUID.
static const uint16_t UUID_PLANT_ENVIRONMENT_CHAR = 0xEB01
 Plant environment characteristic UUID.

Detailed Description

Custom service derived from mbed's BLE Environmental Service.

This service provides air temperature, humidity and soil moisture measurement.

Definition at line 29 of file GreenBuildingService.h.


Constructor & Destructor Documentation

GreenBuildingService ( BLE &  _ble )

GreenBuildingService constructor.

Parameters:
bleReference to BLE device.

Definition at line 49 of file GreenBuildingService.h.


Member Function Documentation

void updatePlantEnvironment ( PlantEnvironmentType_t  newPlantEnvironmentVal )

Update plant environment characteristic.

Parameters:
newPlantEnvironmentValNew plant environment measurement.

Definition at line 75 of file GreenBuildingService.h.


Field Documentation

const uint16_t UUID_GREEN_BUILDING_SERVICE = 0xEB00 [static]

Green Building service UUID.

Definition at line 32 of file GreenBuildingService.h.

const uint16_t UUID_PLANT_ENVIRONMENT_CHAR = 0xEB01 [static]

Plant environment characteristic UUID.

Definition at line 33 of file GreenBuildingService.h.