first test of NRF51822

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_HeartRate by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Sat Jun 20 23:25:02 2015 +0000
Parent:
65:cb76569f74f6
Child:
67:b2d2dee347c0
Commit message:
switch to newer APIs; rename BLEDevice to BLE

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
--- a/BLE_API.lib	Sat Jun 20 00:03:36 2015 +0000
+++ b/BLE_API.lib	Sat Jun 20 23:25:02 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#b04b5db36865
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c
--- a/main.cpp	Sat Jun 20 00:03:36 2015 +0000
+++ b/main.cpp	Sat Jun 20 23:25:02 2015 +0000
@@ -25,7 +25,7 @@
  * interval.*/
 #define UPDATE_PARAMS_FOR_LONGER_CONNECTION_INTERVAL 0
 
-BLEDevice  ble;
+BLE        ble;
 DigitalOut led1(LED1);
 
 const static char     DEVICE_NAME[]        = "HRM1";
@@ -35,7 +35,7 @@
 
 void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
 {
-    ble.startAdvertising(); // restart advertising
+    ble.gap().startAdvertising(); // restart advertising
 }
 
 void periodicCallback(void)