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

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_iBeacon by Bluetooth Low Energy

Revision:
12:00545c957af4
Parent:
11:6774f4827024
Child:
13:04c6103760d2
--- a/main.cpp	Thu May 22 11:09:28 2014 +0100
+++ b/main.cpp	Thu May 22 11:24:37 2014 +0100
@@ -73,13 +73,13 @@
                         beaconPayload,
                         sizeof(beaconPayload));
         GapAdvertisingData scanResponse;
-        ble.getGap().setAdvertisingData(advData, scanResponse);
+        ble.setAdvertisingData(advData, scanResponse);
     }
 
     /* Start advertising! */
     GapAdvertisingParams advParams(
         GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
-    ble.getGap().startAdvertising(advParams);
+    ble.startAdvertising(advParams);
 
     /* Do blinky on mainloopLED while we're waiting for BLE events */
     for (;; ) {