What do I need to know to add mesh functionality into a normal BLE application ?
What do I need to know to add mesh functionality into a normal BLE application ?
This is an update for combining Mesh SDK v2.0.1 and nRF5 SDK v15
In Mesh SDK v2.0.1 it's now easier to be used concurrently with the SDKv15. There is only a few modification needed.
To add mesh into your BLE project you would need:
Include all the source file from Mesh example you want to clone.
Include all header folders from Mesh example in Project Option -> Common -> Preprocessor -> Include Directories
Include Preprocessor Definitions in mesh example ( same setting tab as above).
Add nrf_mesh_evt_handler to SOC observer list with NRF_SDH_SOC_OBSERVER for example:
void nrf_mesh_evt_handler(uint32_t sys_evt, void * p_context) {
nrf_mesh_on_sd_evt(sys_evt);
}
NRF_SDH_SOC_OBSERVER(m_nrf_mesh_observer, 0, nrf_mesh_evt_handler, NULL);
Attached here is an example combining ble_app_uart with light switch server. To test this you would need:
ble_app_uart_mesh_SDK2_0_1.zip
hi Hung Bui
I tried your ble_app_uart_mesh_SDK2_0_1.zip
I am getting this error
C:\nordic_semi\AAMergeSDK\nRF5_SDK_15.0.0_a53641a\examples\components\libraries\experimental_log\src\nrf_log_default_backends.c: No such file or directory
hi Hung Bui
I tried your ble_app_uart_mesh_SDK2_0_1.zip
I am getting this error
C:\nordic_semi\AAMergeSDK\nRF5_SDK_15.0.0_a53641a\examples\components\libraries\experimental_log\src\nrf_log_default_backends.c: No such file or directory
Hi, priya123.
Did you encounter the problem of no such file or directory for "simple_on_off_server.h" and "hal.h"?
If you have, may you tell me your solution? I tried to search, but i couldn't find it.