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.

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Thu Jan 09 16:43:18 2014 +0000
Parent:
1:54fe327e5d0a
Child:
3:288b2baffd14
Commit message:
Update BLE API

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Thu Jan 09 11:04:14 2014 +0000
+++ b/BLE_API.lib	Thu Jan 09 16:43:18 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4a83843f04b0
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#f6022fb90701
--- 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)
 {