High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
7:5e1f0d7f7c7d
Parent:
6:425638944835
Child:
9:124ae067ae27
--- a/main.cpp	Fri Dec 13 00:41:11 2013 +0000
+++ b/main.cpp	Mon Dec 16 12:46:12 2013 +0000
@@ -34,6 +34,7 @@
 /* GAP Advertising Example (iBeacon) */
 GapAdvertisingParams advParams ( GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED );
 GapAdvertisingData   advData;
+GapAdvertisingData   scanResponse;
 
 uint8_t iBeaconPayload[25] = { 0x4C, 0x00, 0x02, 0x15, 0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, 0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61, 0x00, 0x00, 0x00, 0x00, 0xC8 };
 
@@ -45,7 +46,7 @@
     
     wait(2);
     radio.reset();
-    radio.setAdvertising(advParams, advData);
+    radio.setAdvertising(advParams, advData, scanResponse);
     radio.start();
 }