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 X_NUCLEO_IDB0XA1
Fork of BLE_HeartRate by
Diff: main.cpp
- Revision:
- 43:dbb025ed4a55
- Parent:
- 42:06ebef2e0e44
- Child:
- 45:98c5a34b07a4
--- a/main.cpp Mon Sep 22 10:38:25 2014 +0000
+++ b/main.cpp Tue Sep 23 15:04:58 2014 +0000
@@ -19,7 +19,6 @@
#include "HeartRateService.h"
#include "BatteryService.h"
#include "DeviceInformationService.h"
-// #include "DFUService.h"
BLEDevice ble;
DigitalOut led1(LED1);
@@ -34,7 +33,7 @@
#define DEBUG(...) /* nothing */
#endif /* #if NEED_CONSOLE_OUTPUT */
-const static char DEVICE_NAME[] = "Nordic_HRM";
+const static char DEVICE_NAME[] = "HRMonitor";
static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE,
GattService::UUID_BATTERY_SERVICE,
GattService::UUID_DEVICE_INFORMATION_SERVICE};
@@ -77,10 +76,8 @@
uint8_t hrmCounter = 100;
HeartRateService hrService(ble, hrmCounter, HeartRateService::LOCATION_FINGER);
-
BatteryService battery(ble);
- DeviceInformationService deviceInfo(ble, "ARM");
- // DFUService dfu(ble);
+ DeviceInformationService deviceInfo(ble, "ARM", "Model1", "SN1", "hw-rev1", "fw-rev1", "soft-rev1");
while (true) {
if (triggerSensorPolling) {
