door

Dependencies:   BLE_API mbed DOOR

Dependents:   DOOR FLOOD

Fork of BLE_iBeacon_POC by Fallen Fate

Revision:
41:51f585d14675
Parent:
37:205deeded79d
Child:
42:bb46ad5c24dd
--- 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 (;;) {