An example of creating and updating a simple GATT Service using the BLE_API

Dependencies:   BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1

This example creates and updates a standard Battery Level service, and a single GATT characteristic that contains the battery level.

Revision:
16:5cdd04cf1ed4
Parent:
14:39b4b11d9cf5
Child:
17:5afb0e5a48fc
--- a/main.cpp	Mon May 11 07:10:50 2015 +0000
+++ b/main.cpp	Sat Jun 20 23:22:18 2015 +0000
@@ -15,10 +15,10 @@
  */
 
 #include "mbed.h"
-#include "BLEDevice.h"
+#include "BLE.h"
 #include "BatteryService.h"
 
-BLEDevice  ble;
+BLE  ble;
 
 DigitalOut led1(LED1, 1);
 Ticker t;