Graduation Thesis, use Nucleo and X-Nucleo BLE
Dependencies: PulseSensor GSM Thermometer KalmanFilter
Diff: application/main.cpp
- Revision:
- 1:9eadd2dc4b6e
- Parent:
- 0:64ca984b3efd
- Child:
- 2:16f6cfcd7505
diff -r 64ca984b3efd -r 9eadd2dc4b6e application/main.cpp --- a/application/main.cpp Tue Feb 13 18:53:45 2018 +0000 +++ b/application/main.cpp Wed Feb 14 01:29:53 2018 +0000 @@ -6,12 +6,7 @@ * near the bike. * Revision: - * v0_1: only one switch is used. - * v0_5: another switch is added. - * v0_7: thermometer is added. User can view thermomether data on the phone. - * v0_8: humidity and air quality are added. User can view measured data on the phone. - * v1_0: a real DHT22 library is added. - */ + * version 0.8 02-12-2018 /* ======================== INCLUDES ========================= */ #include <events/mbed_events.h> @@ -94,7 +89,7 @@ ble.gap().onDisconnection(disconnectionCallback); HealthCareServicePtr = new HealthCareService(ble, currentTemperature, 3, - /*currentHRMCounter,*/ 3); + currentHRMCounter, 3); /* setup advertising */ ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);