nRF51 SDK - S130 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Template Application

The Template Application is an application that you can use as a starting point for developing your own application, using the hardware delivered in the nRF51 Development Kit.

Note
The application will stop advertising after 3 minutes, and then go to system-off mode. To wake it up, press the button 1, and it will start advertising again.

Setup

The name of the example is ble_app_template_s130_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\ble_app_template

Buttons assignments:

  • Button 1: Wake up and start advertising.

Testing

Test the Template Application with the Master Control Panel by performing the following steps:

  1. Compile and program the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated.
  2. Connect to the device from Master Control Panel (the device will be advertising as 'Nordic_Template'), then connect and perform service discovery. Observe that the BSP_INDICATE_CONNECTED state is indicated.
  3. Disconnect, observe that the BSP_INDICATE_ADVERTISING state is indicated. You can wait for 3 minutes and observe that the BSP_INDICATE_IDLE is indicated.
  4. In system-off, press button 1, the application starts advertising again.