Kenji Arai / Mbed 2 deprecated BLE_EddystoneBeacon_w_ACC_TY51822

Dependencies:   BLE_API LIS3DH mbed nRF51822 BMC050 nRF51_LowPwr nRF51_Vdd

Fork of BLE_EddystoneBeacon_Service by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

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) {