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:
2:a872df2e051e
Parent:
1:54fe327e5d0a
Child:
3:288b2baffd14
--- a/main.cpp	Thu Jan 09 11:04:14 2014 +0000
+++ b/main.cpp	Thu Jan 09 16:43:18 2014 +0000
@@ -1,9 +1,9 @@
 #include "mbed.h"
 #include "UUID.h"
-#include "hw/nRF51822.h"
+#include "nRF51822.h"
 
 /* Radio HW */
-nRF51822 radio;
+nRF51822 radio(p9, p10, p30, p29);   // tx, rx, rts, cts
 
 int main(void)
 {