For Blood Pressure Demo

BLE_BloodPressure_demo implements Blood Pressure Service which enables a collector device to connect and interact with it. the service spec can be found here. User can download the APP 'nRF Connect' or 'nRF Toolbox' available in both App Store and Google Play to scan the adverting and connect to the module.

Files at this revision

API Documentation at this revision

Comitter:
tsungta
Date:
Thu Apr 20 10:25:42 2017 +0000
Parent:
1:fc03791a9842
Commit message:
Update to support NQ620 and NNN50 platform

Changed in this revision

BLE_API.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show diff for this revision Revisions of this file
diff -r fc03791a9842 -r 64cead334a4c BLE_API.lib
--- a/BLE_API.lib	Fri Aug 14 10:41:46 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8d316a3271a8
diff -r fc03791a9842 -r 64cead334a4c main.cpp
--- a/main.cpp	Fri Aug 14 10:41:46 2015 +0000
+++ b/main.cpp	Thu Apr 20 10:25:42 2017 +0000
@@ -3,8 +3,6 @@
 #include "DeviceInformationService.h"
 #include "BloodPressureService.h"
  
-#define UPDATE_PARAMS_FOR_LONGER_CONNECTION_INTERVAL 0
- 
 BLEDevice  ble;
 DigitalOut led01(LED1);
  
@@ -13,7 +11,7 @@
                                               GattService::UUID_DEVICE_INFORMATION_SERVICE};
 static volatile bool  triggerSensorPolling = false;
  
-void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
+void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
 {
     ble.startAdvertising(); // restart advertising
 }
@@ -34,7 +32,7 @@
     ticker.attach(periodicCallback, 1); // blink LED every second
  
     ble.init();
-    ble.onDisconnection(disconnectionCallback);
+    ble.gap().onDisconnection(disconnectionCallback);
  
     /* Setup primary service. */
     float SystolicValue = 100.0f; //  mmHg
diff -r fc03791a9842 -r 64cead334a4c mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Thu Apr 20 10:25:42 2017 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#42be5c01a7f91292d5e27124ad9584236025f6ab
diff -r fc03791a9842 -r 64cead334a4c mbed.bld
--- a/mbed.bld	Fri Aug 14 10:41:46 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7
\ No newline at end of file
diff -r fc03791a9842 -r 64cead334a4c mbed_app.json
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed_app.json	Thu Apr 20 10:25:42 2017 +0000
@@ -0,0 +1,12 @@
+{
+    "config": {
+        "lf_clock_rc_calib_timer_interval": {
+            "value": 16,
+            "macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_TIMER_INTERVAL"
+        },
+        "lf_clock_rc_calib_mode_config": {
+            "value": 0,
+            "macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_MODE_CONFIG"
+        }
+    }
+}
\ No newline at end of file
diff -r fc03791a9842 -r 64cead334a4c nRF51822.lib
--- a/nRF51822.lib	Fri Aug 14 10:41:46 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#ca9c9c2cfc6a