Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_iBeacon by
Revision 27:8d4f5bda1191, committed 2014-06-10
- Comitter:
- Rohit Grover
- Date:
- Tue Jun 10 10:27:33 2014 +0100
- Parent:
- 25:a56462536345
- Child:
- 28:a96e2fd7153e
- Commit message:
- update due to rename of BLEDevice to BLEPeripheral
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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. */
