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 BLE_BlueNRG mbed
Fork of BLE_HeartRate by
Diff: main.cpp
- Revision:
- 34:44dc6efc0b50
- Parent:
- 33:e63df636d3b2
- Child:
- 35:ba3e3174331a
--- a/main.cpp Tue Jul 08 11:18:33 2014 +0100
+++ b/main.cpp Tue Jul 08 11:19:52 2014 +0100
@@ -16,6 +16,7 @@
#include "mbed.h"
#include "BLEDevice.h"
+#include "ble_hrs.h"
BLEDevice ble;
DigitalOut led1(LED1);
@@ -40,7 +41,7 @@
static uint8_t bpm[2] = {0x00, hrmCounter};
GattCharacteristic hrmRate(GattCharacteristic::UUID_HEART_RATE_MEASUREMENT_CHAR, bpm, sizeof(bpm), sizeof(bpm),
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY);
-static uint8_t location = 0x03; /* Finger */
+static uint8_t location = BLE_HRS_BODY_SENSOR_LOCATION_FINGER;
GattCharacteristic hrmLocation(GattCharacteristic::UUID_BODY_SENSOR_LOCATION_CHAR,
(uint8_t *)&location, sizeof(location), sizeof(location),
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_READ);
