Graduation Thesis, use Nucleo and X-Nucleo BLE

Dependencies:   PulseSensor GSM Thermometer KalmanFilter

Revision:
16:0325e647496f
Parent:
15:00a1c0ea570c
Child:
17:b7c2db3e7282
--- a/Application/ble_healthcare_service.h	Fri May 18 16:51:27 2018 +0000
+++ b/Application/ble_healthcare_service.h	Wed May 23 17:33:11 2018 +0000
@@ -99,6 +99,16 @@
         return controlState.getValueHandle();
     }
 
+    GattAttribute::Handle_t getTypeHandle() const
+    {
+        return tempLocation.getValueHandle();
+    }    
+    
+    GattAttribute::Handle_t getLocationHandle() const
+    {
+        return hrmLocation.getValueHandle();
+    }     
+
     /**
       * @brief Update the temperature being broadcast.
       * @param[in] temperature Floating point value of the temperature.
@@ -114,11 +124,19 @@
       * @brief Update the temperature location.
       * @param loc New location value.     
       */
-    void updateLocation(uint8_t loc) {
+    void updateType(uint8_t loc) {
         ble.gattServer().write(tempLocation.getValueHandle(), reinterpret_cast<uint8_t *>(&loc), sizeof(uint8_t));
     }
     
     /**
+      * @brief Update the temperature location.
+      * @param loc New location value.     
+      */
+    void updateLocation(uint8_t loc) {
+        ble.gattServer().write(hrmLocation.getValueHandle(), reinterpret_cast<uint8_t *>(&loc), sizeof(uint8_t));
+    }    
+    
+    /**
       * Update the heart rate that the service exposes.
       * The server sends a notification of the new value to clients that have
       * subscribed to updates of the heart rate measurement characteristic; clients