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:
13:04c6103760d2
Parent:
12:00545c957af4
Child:
14:dfdf0c8b1c09
--- a/main.cpp	Thu May 22 11:24:37 2014 +0100
+++ b/main.cpp	Thu May 22 12:13:26 2014 +0100
@@ -72,8 +72,7 @@
         advData.addData(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA,
                         beaconPayload,
                         sizeof(beaconPayload));
-        GapAdvertisingData scanResponse;
-        ble.setAdvertisingData(advData, scanResponse);
+        ble.setAdvertisingData(advData);
     }
 
     /* Start advertising! */