EddyStone Beacon demo for the BLE API using the nRF51822 native mode drivers
Dependencies: BLE_API mbed nRF51822
Fork of BLE_iBeacon by
Diff: main.cpp
- Revision:
- 16:3a0aa30e3b12
- Parent:
- 15:4e1b36b73213
- Child:
- 17:e7748951593e
diff -r 4e1b36b73213 -r 3a0aa30e3b12 main.cpp --- 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();