Demonstration code showing how to control an LED over Bluetooth Low Energy using the UARTService

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_LoopbackUART by Bluetooth Low Energy

This programme demonstrates the use of the UARTService to send command strings over Bluetooth Low Energy (BLE) to control devices attached to the nRF51822 board.

In this example you can use a BLE connection from smart phone to turn on and off LED2 on the board.

Sending the character string "led2 on" will turn the LED on and "led2 off" will turn it off.

The command that is received is also echoed back via BLE to the sending device.

You can use the nRF UART App on and Android or iOS smart phone with BLE to test this out https://www.nordicsemi.com/eng/Products/nRFready-Demo-APPS

I have also ported the source code for the Android app into Android studio which should be a good starting point for developing your own custom App https://github.com/bennthomsen/nRF_UART. If you want to start using this within Android Studio create for own fork in GitHub and then from within Android Studio VCS>Checkout from Version Control>GitHub

BLE_API.lib

Committer:
djmannion
Date:
2015-01-02
Revision:
15:2a9916011a2a
Parent:
11:add794159852

File content as of revision 15:2a9916011a2a:

http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#0e9201b67e2f