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 X_NUCLEO_IDB0XA1
Fork of BLE_iBeacon by
Revision 37:205deeded79d, committed 2014-07-04
- Comitter:
- Rohit Grover
- Date:
- Fri Jul 04 15:14:58 2014 +0100
- Parent:
- 32:7b7093b653a8
- Child:
- 38:33ee358dc876
- Commit message:
- include LE_GENERAL_DISCOVERABLE in advertising payload
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jun 10 13:13:07 2014 +0100
+++ b/main.cpp Fri Jul 04 15:14:58 2014 +0100
@@ -60,7 +60,7 @@
DEBUG("Initialising BTLE transport\n\r");
ble.init();
- ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
+ ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload));
ble.setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);
