Skip to content

Bluetooth/MiraMesh multi stack support

Support for Bluetooth low energy in parallel with MiraMesh network on the nRF52 platform.

The Bluetooth/Mira multi stack support makes it possible to have a connection to devices from a mobile phone while the devices still are connected to the MiraMesh network. Making it possible to reconfigure devices on the fly.


To use the multi-stack support, look at the ble example available in the distribution.

Bluetooth functionality is available using the nRF5 SoftDevice API. For API documentation, refer to Nordic documentation:

An API to MiraMesh is available for registering an event handler.

Resource sharing

Bluetooth and MiraMesh shares the same radio, which means that increased bluetooth activity will reduce performance of the MiraMesh network. Therefore, only bluetooth modes with low radio usage is supported.

Also note that Bluetooth may increase power consumption.


Name Type Description
mira_nrf_ble_event_handler_t void(*)(void)

Event handler callback for nrf52 softdevice BLE events.

The event handler should poll for ble events using sd_ble_evt_get()



mira_status_t mira_nrf_ble_event_handler_register(
    mira_nrf_ble_event_handler_t  evt_handler);

Register event handler for nRF52 softdevice BLE events.


Parameter Description
evt_handler event handler


status of operation, MIRA_SUCCESS on success