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:
41:51f585d14675
Parent:
37:205deeded79d
Child:
42:bb46ad5c24dd
diff -r 52e9de9e0186 -r 51f585d14675 main.cpp
--- a/main.cpp	Fri Jul 25 16:27:01 2014 +0000
+++ b/main.cpp	Tue Aug 12 08:26:18 2014 +0000
@@ -44,7 +44,7 @@
  * Major/Minor  = 0000 / 0000
  * Tx Power     = C8
  */
-const static uint8_t beaconPayload[] = {
+const uint8_t beaconPayload[] = {
     0x4C, 0x00, // Company identifier code (0x004C == Apple)
     0x02,       // ID
     0x15,       // length of the remaining payload
@@ -64,7 +64,7 @@
     ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload));
 
     ble.setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
-    ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */
+    ble.setAdvertisingInterval(1600); /* 1s; in multiples of 0.625ms. */
     ble.startAdvertising();
 
     for (;;) {