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 1:54fe327e5d0a, committed 2014-01-09
- Comitter:
- ktownsend
- Date:
- Thu Jan 09 11:04:14 2014 +0000
- Parent:
- 0:395932faedf1
- Child:
- 2:a872df2e051e
- Commit message:
- Updated to latest BLE_API library
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 10:53:09 2014 +0000 +++ b/BLE_API.lib Thu Jan 09 11:04:14 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#755b897a47b1 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4a83843f04b0
--- a/main.cpp Thu Jan 09 10:53:09 2014 +0000 +++ b/main.cpp Thu Jan 09 11:04:14 2014 +0000 @@ -1,6 +1,6 @@ #include "mbed.h" -#include "uuid.h" -#include "hw/nrf51822.h" +#include "UUID.h" +#include "hw/nRF51822.h" /* Radio HW */ nRF51822 radio;