Bluetooth/Mira multi stack support¶
Support for bluetooth low energy in paralell with Mira network on the nRF52 platform.
The bluetooth/Mira multi stack support makes it possible to have a connection to connect to devices using a mobile phone while the devices still is connected to the Mira network. Making it possible to reconfgiure 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 nrf softdevice API. For API documentation, refer to nordic documentation:
An API to MiraOS is available for registering an event handler
Bluetooth and Mira shares the same radio, which means that increased bluetooth activity will reduce performance of the Mira network. Therefore, only bluetooth modes with low radio usage is supported.
Also note that bluetooth may increase power consumption.
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 events.
status of operation, MIRA_SUCCESS on success