Simple beacon for nRF51822

Dependencies:   BLE_API mbed nRF51822Copy

Fork of BLE_iBeacon by Bluetooth Low Energy

This is the demo beacon for ARM TechCon 2014.

Based on the original library, this demo reads the onboard switches and temperature sensor and beacons them out as a BLE advertisment.

Revision:
16:3a0aa30e3b12
Parent:
15:4e1b36b73213
Child:
17:e7748951593e
--- a/main.cpp	Thu May 22 13:09:17 2014 +0100
+++ b/main.cpp	Thu May 22 14:42:00 2014 +0100
@@ -17,12 +17,12 @@
 #include "mbed.h"
 #include "nRF51822n.h"
 
-nRF51822n   ble;                /* BLE radio driver */
+nRF51822n  ble;                /* BLE radio driver */
 
-DigitalOut  mainloopLED(LED1);
-DigitalOut  tickerLED(LED2);
-Ticker      flipper;
-Serial      pc(USBTX,USBRX);
+DigitalOut mainloopLED(LED1);
+DigitalOut tickerLED(LED2);
+Ticker     flipper;
+Serial     pc(USBTX,USBRX);
 
 /*
  * For this demo application, populate the beacon advertisement payload
@@ -57,8 +57,7 @@
 {
     setupAppHardware();
 
-    /* Initialise the nRF51822 */
-    pc.printf("Initialising the nRF51822\n\r");
+    pc.printf("Initialising BTLE transport\n\r");
     ble.init();
     ble.reset();