Graduation Thesis, use Nucleo and X-Nucleo BLE

Dependencies:   PulseSensor GSM Thermometer KalmanFilter

Revision:
3:9b552b775c6e
Parent:
2:16f6cfcd7505
Child:
4:e44cd8682f1c
--- a/application/main.cpp	Wed Feb 14 02:20:37 2018 +0000
+++ b/application/main.cpp	Thu Feb 15 12:53:31 2018 +0000
@@ -4,14 +4,17 @@
   * Revision:
   * version 0.8     02-12-2018
   * version 0.8.5   02-14-2018
+  * version 0.9     02-15-2018  Pulse sensor added
 
 /* ======================== INCLUDES ========================= */
 #include <events/mbed_events.h>
 #include <mbed.h>
 #include "ble/BLE.h"
 #include "ble_healthcare_service.h"
+#include "PulseSensor.h"
 
 /* ======================== DEFINES ========================== */
+#define SENSOR_PIN      A0
 
 /* ======================= VARIABLES ========================= */
 /* GLOBAL VARIABLES */
@@ -20,12 +23,12 @@
 
 /* PRIVATE VARIABLES */
 const static char     DEVICE_NAME[] = "HEALTH STATE";
-static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE};
-
+static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE, GattService::UUID_HEALTH_THERMOMETER_SERVICE};
 
 /* STRUCTS/CLASSESS */
 static EventQueue        eventQueue(EVENTS_EVENT_SIZE * 20);
 HealthCareService       *HealthCareServicePtr;
+//PulseSensor              PulseSensor();
 
 /* ================== FUNCTION PROTOTYPES ==================== */
 
@@ -35,7 +38,6 @@
     BLE::Instance().gap().startAdvertising();
 }
 
-
 void main_event(void) {
     /* Do blocking calls or whatever is necessary for sensor polling.
        In our case, we simply update the Temperature measurement. */