Beacon demo for the BLE API using the nRF51822 native mode drivers

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

Fork of BLE_iBeacon by Bluetooth Low Energy

Revision:
69:f121dba6fcd3
Parent:
60:3034dc913ea1
Child:
71:12660a3eb07d
diff -r 10ab1574c6dd -r f121dba6fcd3 main.cpp
--- 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