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 LIS3DH mbed nRF51822 BMC050 nRF51_LowPwr nRF51_Vdd
Fork of BLE_EddystoneBeacon_Service by
Revision 33:862e6e0831ea, committed 2015-10-01
- Comitter:
- mbedAustin
- Date:
- Thu Oct 01 18:30:37 2015 +0000
- Parent:
- 32:41840b78597e
- Child:
- 34:f6d4a699a1ea
- Commit message:
- updated example to be in line with API changes
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 01 16:28:22 2015 +0000
+++ b/main.cpp Thu Oct 01 18:30:37 2015 +0000
@@ -51,7 +51,8 @@
int main(void)
{
printf("Starting Example\r\n"); // To enable low power mode disable all printf's
-
+ ble.init();
+
// Set Eddystone Frame Data (TLM,UID,URI...etc)
eddyBeacon.setTLMFrameData(tlmVersion,5.0);
eddyBeacon.setURLFrameData(advTxPower, Url, 2.0);
@@ -63,6 +64,7 @@
// Start Advertising the eddystone service.
eddyBeacon.start();
+ ble.gap().startAdvertising();
printf("Running...\r\n");
while (true) {
