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.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate by
Revision 76:2deee6623e43, committed 2015-11-09
- Comitter:
- jjrosent
- Date:
- Mon Nov 09 16:53:28 2015 +0000
- Parent:
- 75:8128a06c0a21
- Commit message:
- Add dfu to heartrate
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 03 15:41:48 2015 +0000
+++ b/main.cpp Mon Nov 09 16:53:28 2015 +0000
@@ -17,6 +17,7 @@
#include "mbed.h"
#include "ble/BLE.h"
#include "ble/services/HeartRateService.h"
+#include "ble/services/DFUService.h"
#include "ble/services/BatteryService.h"
#include "ble/services/DeviceInformationService.h"
@@ -31,6 +32,7 @@
HeartRateService *hrService;
DeviceInformationService *deviceInfo;
+DFUService *dfuService;
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
{
@@ -57,6 +59,8 @@
ble.gap().onDisconnection(disconnectionCallback);
+ dfuService = new DFUService(ble);
+
/* Setup primary service. */
hrService = new HeartRateService(ble, hrmCounter, HeartRateService::LOCATION_FINGER);
