This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

adding 'scan' to ble_app_uart example (cocurrent BLE central and peripheral)

Hi, all.

I'm using nrf52840, s140, pca10056

I also want to add a scanning instance to the ble_app_uart example.


So, refer to the example of ble_app_uart_c, I added functions db_discovery_init / nus_c_init / scan_init / scan_start.

I've modified and added various variables and settings,

I enabled NRF_SDH_BLE_CENTRAL_LINK_COUNT to 1 in sdk_config.h file.

This resulted in an error in the ble_stack_init,  err_code = nrf_sdh_ble_enable(&ram_start); which is 0x04 error.

What else should I set to add 'scanning' to the ble_uart peripheral example? What did I miss?

BR,

Lyrics

Related