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.
Diff: WeatherStation.h
- Revision:
- 14:c5578b5edabe
- Parent:
- 12:856286ad4cdc
--- a/WeatherStation.h Mon Mar 25 14:55:30 2019 +0000
+++ b/WeatherStation.h Tue Apr 02 09:51:34 2019 +0000
@@ -7,6 +7,8 @@
#include "MeasurementHistory.h"
#include "ble/BLE.h"
#include "GAPPeripheral.h"
+#include "BatteryService.h"
+#include "EnvironmentalService.h"
#include <ctime>
@@ -24,6 +26,8 @@
// Called at the end of performMeasurements(void): encode and send values to the GAP Peripheral
void setupAdvertisementPayload(double pressure, double temp, double humidity);
+
+ virtual void onInitComplete(BLE::InitializationCompleteCallbackContext *event);
private:
// data members
@@ -56,5 +60,10 @@
// reference to advertising payload
ServiceDataPayload dataPayload[1];
+
+ // services
+ BatteryService m_batteryService;
+
+ EnvironmentalService m_environmentalService;
};