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:
- 41:9cef0129da5f
- Parent:
- 40:e73130c6f2bb
- Child:
- 42:06ebef2e0e44
--- a/main.cpp Fri Aug 22 15:04:49 2014 +0000
+++ b/main.cpp Tue Sep 02 16:17:18 2014 +0000
@@ -35,7 +35,7 @@
static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE};
static volatile bool triggerSensorPolling = false;
-void disconnectionCallback(Gap::Handle_t handle)
+void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
{
DEBUG("Disconnected handle %u!\n\r", handle);
DEBUG("Restarting the advertising process\n\r");
@@ -71,7 +71,7 @@
ble.startAdvertising();
uint8_t hrmCounter = 100;
- HeartRateService hrService(ble, hrmCounter, HeartRateService::BLE_HRS_BODY_SENSOR_LOCATION_FINGER);
+ HeartRateService hrService(ble, hrmCounter, HeartRateService::LOCATION_FINGER);
while (true) {
if (triggerSensorPolling) {
