yes Spada / Mbed OS programme
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;
 
 };