Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API X_NUCLEO_IDB0XA1 X_NUCLEO_IKS01A1 mbed
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:
-
ble Reference to BLE device.
Definition at line 49 of file GreenBuildingService.h.
Member Function Documentation
| void updatePlantEnvironment | ( | PlantEnvironmentType_t | newPlantEnvironmentVal ) |
Update plant environment characteristic.
- Parameters:
-
newPlantEnvironmentVal New 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.
Generated on Tue Jul 12 2022 14:54:29 by
1.7.2