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.
Usage¶
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:
- nRF52832 - S132 documentation
- nRF52840 - S140 documentation
An API to MiraOS is available for registering an event handler
Resource sharing¶
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.
Types¶
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() |
Functions¶
mira_nrf_ble_event_handler_register¶
mira_status_t mira_nrf_ble_event_handler_register( mira_nrf_ble_event_handler_t evt_handler);
Register event handler for nRF52 softdevice events.
Parameters
Parameter | Description |
---|---|
evt_handler |
event handler |
Return
status of operation, MIRA_SUCCESS on success