Skip to content
nRF Blinky is an application developed targeting an audience of developers who are new to Bluetooth Low Energy
Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Firmwares Version 2.0 Dec 18, 2017
app Bump version codes Aug 12, 2019
gradle/wrapper Bump gradle Aug 12, 2019
.gitignore gitignore Nov 9, 2017
LICENSE Initial commit Nov 11, 2015
README.md Readme updated Feb 7, 2019
build.gradle Bump gradle Aug 12, 2019
gradle.properties Migration to AndroidX Nov 13, 2018
gradlew
gradlew.bat Initial Source Commit Nov 11, 2015
settings.gradle Instruction how to include BLE Library as a module. Nov 8, 2018

README.md

nRF BLINKY

nRF Blinky is an application developed targeting an audience of developers who are new to Bluetooth Low Energy. This is a very simple application with two basic features to turn on LED 3 on the nRF DK and to receive the Button 1 press event from a nRF DK on the nRF Blinky Application. It demonstrates how to the BleManager class from Android nRF Blinky library can be used from View Model (see Architecture Components).

Nordic LED and Button Service

Service UUID: 00001523-1212-EFDE-1523-785FEABCD123

A simplified proprietary service by Nordic Semiconductor, containing two characteristics one to control LED 3 and Button 1:

  • First characteristic controls the LED state (On/Off).

    • UUID: 00001525-1212-EFDE-1523-785FEABCD123
    • Value: 1 => LED On
    • Value: 0 => LED Off
  • Second characteristic notifies central of the button state on change (Pressed/Released).

    • UUID: 00001524-1212-EFDE-1523-785FEABCD123
    • Value: 1 => Button Pressed
    • Value: 0 => Button Released

For full specification, check out documentation.

Requirements

  • This application depends on Android BLE Library version 2.
  • Android 4.3 or newer is required.
  • nRF5 DK is required in order to test the BLE Blinky service.

Installation and usage

Prepare your Development kit.

  • Plug in the Development Kit to your computer via USB.
  • Power On the Development Kit.
  • The Development Kit will now appear as a Mass storage device.
  • Drag (or copy/paste) the appropriate HEX file onto that new device.
  • The Development Kit LEDs will flash and it will disconnect and reconnect.
  • The Development Kit is now ready and flashed with the nRF Blinky example firmware.

For your convenience, we have bundled two firmwares in this project under the Firmwares directory.

To get the latest firmwares and check the source code, you may go directly to our Developers website and download the SDK version you need. Then, find the source code and hex files in the directory /examples/ble_peripheral/ble_app_blinky/.

More information about the nRF Blinky example firmware can be found in the documentation.

Note

In order to scan for Bluetooth LE device the Location permission must be granted and, on some phones, the Location must be enabled. This app will not use the location information in any way.

You can’t perform that action at this time.