A simple demo around security APIs. Submitted by Xiao Sun.

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_HeartRate_AddSec by xiao sun

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Tue Sep 29 12:05:32 2015 +0000
Parent:
6:715150f7f293
Commit message:
updating underlying libraries.

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 715150f7f293 -r e8dfe1c97c71 BLE_API.lib
--- a/BLE_API.lib	Sat Jun 20 23:44:08 2015 +0000
+++ b/BLE_API.lib	Tue Sep 29 12:05:32 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#d494ad3e87bd
diff -r 715150f7f293 -r e8dfe1c97c71 main.cpp
--- a/main.cpp	Sat Jun 20 23:44:08 2015 +0000
+++ b/main.cpp	Tue Sep 29 12:05:32 2015 +0000
@@ -27,7 +27,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)
 {
     printf("Disconnected!\r\n");
     ble.startAdvertising(); // restart advertising
@@ -59,9 +59,9 @@
 void securitySetupCompletedCallback(Gap::Handle_t handle, SecurityManager::SecurityCompletionStatus_t status)
 {
     if (status == SecurityManager::SEC_STATUS_SUCCESS) {
-        printf("Security success\r\n", status);
+        printf("Security success\r\n");
     } else {
-        printf("Security failed\r\n", status);
+        printf("Security failed\r\n");
     }
 }
 
diff -r 715150f7f293 -r e8dfe1c97c71 mbed.bld
--- a/mbed.bld	Sat Jun 20 23:44:08 2015 +0000
+++ b/mbed.bld	Tue Sep 29 12:05:32 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa
\ No newline at end of file
diff -r 715150f7f293 -r e8dfe1c97c71 nRF51822.lib
--- a/nRF51822.lib	Sat Jun 20 23:44:08 2015 +0000
+++ b/nRF51822.lib	Tue Sep 29 12:05:32 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#7c68c8d67e1f
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#088f5738bf18