template for an actuator service

Dependencies:   BLE_API mbed nRF51822

Demo for an Actuator Service

To help you create your own BLE services, we've created a series of service templates. The *actuator service template* demonstrates the use of a read-write characteristic to control a LED through a phone app.

The template covers:

1. Setting up advertising and connection states.

2. Assigning UUIDs to the service and its characteristic.

3. Creating an input characteristic: read-write, boolean. This characteristic offers control of the LED.

4. Constructing a service class and adding it to the BLE stack.

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Jun 19 23:42:36 2015 +0000
Parent:
5:7cc4280b288e
Child:
7:c9271599ec5f
Commit message:
updating to the latest of the underlying libraries.

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
nRF51822.lib Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Fri Jun 12 22:57:55 2015 +0000
+++ b/BLE_API.lib	Fri Jun 19 23:42:36 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#c4436674db7b
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#b04b5db36865
--- a/main.cpp	Fri Jun 12 22:57:55 2015 +0000
+++ b/main.cpp	Fri Jun 19 23:42:36 2015 +0000
@@ -15,7 +15,7 @@
  */
 
 #include "mbed.h"
-#include "BLEDevice.h"
+#include "BLE.h"
 #include "LEDService.h"
 
 BLEDevice  ble;
--- a/nRF51822.lib	Fri Jun 12 22:57:55 2015 +0000
+++ b/nRF51822.lib	Fri Jun 19 23:42:36 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#d0fc349b9a1b
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#7c68c8d67e1f