nRF5 SDK v17.0.2
Bluetooth low energy examples
This information applies to the following SoftDevices: S132, S140

The SDK provides example applications that implement BLE profiles and demonstrate the use of BLE services.

We have two types of example application designs:

In both designs, the example applications have many similarities:

For more information of low power modes used in the example applications, see Power Management section in the documentation of the Power Profiling Application.

In an application using the Scheduler, instead of calling service/application event handlers directly from the SoftDevice Handler callback function, the callback function passes "wrapper" events to the Scheduler, and the "wrapper" event handler will call the service/application event handlers, thus making all service/application event handlers execute in thread mode.

When initializing the Application Timer module, applications using the Scheduler must supply a pointer to the app_sched_timer_event_schedule() function to app_timer_init(). This function will transfer execution of timer timeout handlers to the main loop by using the Scheduler.

See Schedule handling library for illustrations showing the flow of events for various application scenarios, both with and without the Scheduler.


BLE Central

BLE Central & Peripheral

BLE Peripheral

BLE Secure DFU Bootloader

Documentation feedback | Developer Zone | Subscribe | Updated