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 69:f121dba6fcd3, committed 2015-06-20
- Comitter:
- rgrover1
- Date:
- Sat Jun 20 23:27:35 2015 +0000
- Parent:
- 68:10ab1574c6dd
- Child:
- 70:5f9c3ea19f5b
- Commit message:
- switch to newer APIs; rename BLEDevice to BLE
Changed in this revision
| BLE_API.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BLE_API.lib Fri Jun 19 23:36:38 2015 +0000 +++ b/BLE_API.lib Sat Jun 20 23:27:35 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#b04b5db36865 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c
--- a/main.cpp Fri Jun 19 23:36:38 2015 +0000
+++ b/main.cpp Sat Jun 20 23:27:35 2015 +0000
@@ -25,7 +25,7 @@
* Bluetooth Core Specification 4.0 (Vol. 3), Part C, Section 11, 18
*/
-BLEDevice ble;
+BLE ble;
/**
* The Beacon payload has the following composition:
@@ -49,8 +49,8 @@
iBeaconService ibeacon(ble, uuid, majorNumber, minorNumber, txPower);
- ble.setAdvertisingInterval(1000); /* 1000ms. */
- ble.startAdvertising();
+ ble.gap().setAdvertisingInterval(1000); /* 1000ms. */
+ ble.gap().startAdvertising();
while(1) {
ble.waitForEvent(); // allows or low power operation
