Odometry Pedometer using nRF51822 and ADXL345
Dependencies: ADXL345 BLE_API mbed nRF51822
Fork of BLE_CycleSpeedCadence by
Revision 43:dbb025ed4a55, committed 2014-09-23
- Comitter:
- rgrover1
- Date:
- Tue Sep 23 15:04:58 2014 +0000
- Parent:
- 42:06ebef2e0e44
- Child:
- 44:f0df248cbe78
- Commit message:
- minor update to advertising payload; and fleshing out Device Information Service.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
