A template for applications where some small amount of data needs to be notified to a phone app over BLE. It is a good starting point for notifications.

Dependencies:   BLE_API mbed nRF51822

Demo for an Input Service

To help you create your own BLE services, we've created a series of service templates. The *input service template* demonstrates the use of a simple input (boolean values) from a read-only characteristic.

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-only, boolean, with notifications. This characteristic is updated according to the button's state.

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

History

Update example to comply with latest BLE API changes. default tip

2015-12-30, by andresag [Wed, 30 Dec 2015 09:54:06 +0000] rev 10

Update example to comply with latest BLE API changes.


pulling in an improvement suggested by Andrea Palmieri

2015-10-09, by rgrover1 [Fri, 09 Oct 2015 13:37:52 +0000] rev 9

pulling in an improvement suggested by Andrea Palmieri


updating underlying libraries.

2015-09-29, by rgrover1 [Tue, 29 Sep 2015 09:58:02 +0000] rev 8

updating underlying libraries.


updating to the latest of the underlying libraries.;

2015-07-02, by rgrover1 [Thu, 02 Jul 2015 08:45:35 +0000] rev 7

updating to the latest of the underlying libraries.;


switch to newer APIs; rename BLEDevice to BLE

2015-06-20, by rgrover1 [Sat, 20 Jun 2015 23:52:29 +0000] rev 6

switch to newer APIs; rename BLEDevice to BLE


updating the underlying libraries.

2015-06-20, by rgrover1 [Sat, 20 Jun 2015 00:00:32 +0000] rev 5

updating the underlying libraries.


switch to the latest of the underlying libraries.

2015-05-18, by rgrover1 [Mon, 18 May 2015 09:09:48 +0000] rev 4

switch to the latest of the underlying libraries.


Updating to the latest of the underlying libraries.

2015-05-11, by rgrover1 [Mon, 11 May 2015 07:12:06 +0000] rev 3

Updating to the latest of the underlying libraries.


updating underlying libraries.

2015-03-24, by rgrover1 [Tue, 24 Mar 2015 08:13:56 +0000] rev 2

updating underlying libraries.


minor fix for characteristic UUID

2015-02-17, by rgrover1 [Tue, 17 Feb 2015 22:08:57 +0000] rev 1

minor fix for characteristic UUID