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:
15:4e1b36b73213
Parent:
14:dfdf0c8b1c09
Child:
16:3a0aa30e3b12
--- a/main.cpp	Thu May 22 13:04:29 2014 +0100
+++ b/main.cpp	Thu May 22 13:09:17 2014 +0100
@@ -26,15 +26,15 @@
 
 /*
  * For this demo application, populate the beacon advertisement payload
- * with 2 AD structures: FLAG and MSD
+ * with 2 AD structures: FLAG and MSD (manufacturer specific data).
  *
  * Reference:
  *  Bluetooth Core Specification 4.0 (Vol. 3), Part C, Section 11, 18
  */
 
 /*
- * The Beacon payload (within the MSD advertising data structure) has the
- * following composition:
+ * The Beacon payload (encapsulated within the MSD advertising data structure)
+ * has the following composition:
  * 128-Bit UUID = E2 0A 39 F4 73 F5 4B C4 A1 2F 17 D1 AD 07 A9 61
  * Major/Minor  = 0000 / 0000
  * Tx Power     = C8
@@ -63,7 +63,7 @@
     ble.reset();
 
     /* Setup advertising data. This includes AD structures in the payload of
-     * advertising packets; and scan-response data. */
+     * advertising packets. */
     {
         GapAdvertisingData advData;
         advData.addFlags(GapAdvertisingData::BREDR_NOT_SUPPORTED);
@@ -83,8 +83,6 @@
         mainloopLED = !mainloopLED;
         wait(1);
     }
-
-    /* unreachable. */
 }
 
 void setupAppHardware(void)