Simple beacon for nRF51822

Dependencies:   BLE_API mbed nRF51822Copy

Fork of BLE_iBeacon by Bluetooth Low Energy

This is the demo beacon for ARM TechCon 2014.

Based on the original library, this demo reads the onboard switches and temperature sensor and beacons them out as a BLE advertisment.

Revision:
19:869d8c7306b4
Parent:
18:e49bb8b059bf
Child:
20:5e84b5b253a5
--- a/main.cpp	Thu May 22 17:10:38 2014 +0100
+++ b/main.cpp	Fri May 23 15:00:50 2014 +0100
@@ -72,10 +72,8 @@
         ble.setAdvertisingData(advData);
     }
 
-    /* Start advertising! */
-    GapAdvertisingParams advParams(
-        GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
-    ble.startAdvertising(advParams);
+    ble.setAdvertisingParams(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
+    ble.startAdvertising();
 
     /* Do blinky on mainloopLED while we're waiting for BLE events */
     for (;; ) {