Minimal usage example of BLE API

Dependencies:   BLE_API mbed nRF51822

Just a very simple and minimal BluetoothLE API 'Hello World' example.

Revision:
1:b84d6e0b404e
Parent:
0:a89b73f690c1
Child:
2:4f0d8bf09690
--- a/main.cpp	Wed Jan 28 17:35:34 2015 +0000
+++ b/main.cpp	Wed Jan 28 17:44:09 2015 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "BLEDevice.h"
 
-#include "DFUService.h"
+// DFUService is already included & automatically advertised by the mbed lib dependancies (currently)
 
 const static char     DEVICE_NAME[]        = "HelloBlue";
 
@@ -17,8 +17,6 @@
     ble.init();
     ble.onDisconnection(disconnectionCallback);
 
-    DFUService dfu(ble);
-
     /* Setup advertising. */
     ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME));