van

Dependencies:   BLE_API mbed VAN

Dependents:   VAN

Fork of BLE_iBeacon_POC by Fallen Fate

Revision:
27:8d4f5bda1191
Parent:
25:a56462536345
Child:
30:746d37d781de
--- a/main.cpp	Fri May 30 13:33:21 2014 +0100
+++ b/main.cpp	Tue Jun 10 10:27:33 2014 +0100
@@ -15,9 +15,9 @@
  */
 
 #include "mbed.h"
-#include "BLEDevice.h"
+#include "BLEPeripheral.h"
 
-BLEDevice  ble;                /* BLE radio driver */
+BLEPeripheral ble;                /* BLE radio driver */
 
 DigitalOut mainloopLED(LED1);
 DigitalOut tickerLED(LED2);
@@ -72,9 +72,7 @@
     ble.init();
 
     ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
-    ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA,
-                                     beaconPayload,
-                                     sizeof(beaconPayload));
+    ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload));
 
     ble.setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
     ble.setAdvertisingTimeout(0);    /* disable timeout. */