Unudge / Mbed 2 deprecated BLE_iBeacon_ORIGINAL

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

Fork of BLE_iBeacon by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Sat Jun 20 23:27:35 2015 +0000
Parent:
68:10ab1574c6dd
Child:
70:5f9c3ea19f5b
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	Fri Jun 19 23:36:38 2015 +0000
+++ b/BLE_API.lib	Sat Jun 20 23:27:35 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	Fri Jun 19 23:36:38 2015 +0000
+++ b/main.cpp	Sat Jun 20 23:27:35 2015 +0000
@@ -25,7 +25,7 @@
  *  Bluetooth Core Specification 4.0 (Vol. 3), Part C, Section 11, 18
  */
 
-BLEDevice ble;
+BLE ble;
 
 /**
  * The Beacon payload has the following composition:
@@ -49,8 +49,8 @@
 
     iBeaconService ibeacon(ble, uuid, majorNumber, minorNumber, txPower);
 
-    ble.setAdvertisingInterval(1000); /* 1000ms. */
-    ble.startAdvertising();
+    ble.gap().setAdvertisingInterval(1000); /* 1000ms. */
+    ble.gap().startAdvertising();
 
     while(1) {
         ble.waitForEvent(); // allows or low power operation