nRF5 SDK v15.0.0
BLE Blinky Application
This example requires one of the following SoftDevices: S112, S132, S140

Important: Before you run this example, make sure to program the SoftDevice.

The BLE Blinky Application uses the LED Button Service Server. This is a small custom service that is used to toggle LEDs and receive button statuses from the nRF5 Development board.

Setup

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\ble_app_blinky

Button assignments: BSP BLE Button Assignments

Testing

You can test the example by using an Android device, a second development board, or nRF Connect.

Test using an Android device

To test the BLE Blinky Application, you must install the nRF Blinky Android app. It is available from Google Play and the nRF Blinky GitHub repository.

Test using a Central Blinky Client

You can test the Blinky example by using the BLE Blinky Client Application Example. The BLE Blinky Client Application Example is a central to this peripheral example. If you download these examples onto two different boards, you will notice that they connect to each other (LED 1 is off, LED 2 is ON). You can now press Button 1 on one of the boards and observe that LED 3 will light on the other board. For a more detailed description see the BLE Blinky Client Application Example documentation.

Test using nRF Connect

You can also test the application with nRF Connect by performing the following steps:

  1. Compile and program the application. Observe that LED 1 is on. This indicates that the application is advertising.
  2. Connect to the device from nRF Connect (the device is advertising as 'Nordic_Blinky').
  3. Observe that LED 2 is on and LED 1 is off. This indicates that the connections is established.
  4. Observe that the services are shown in the connected device and that you can enable services for the Button Characteristic by clicking the 'Play' button.
  5. Notifications are received on the Button Characteristic (0x1524) when pressing or releasing Button 1.
  6. Write '01' to the LED Characteristic (0x1525) and observe that LED 3 is turned on.
  7. Write '00' to the LED Characteristic (0x1525) and observe that LED 3 is turned off.

Documentation feedback | Developer Zone | Subscribe | Updated