Hello, I want to add NUS service on the SDK_14.1.0_1 example called "ble_app_hrs_rscs_relay". I added
uint32_t nus_err_code;
ble_nus_init_t nus_init;
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;
nus_err_code = ble_nus_init(&m_nus, &nus_init);
in services_init of "main.c".
I set "NRF_SDH_BLE_VS_UUID_COUNT" to 1 in sdk_config.h and I modified RAM start address and size (in the .ld script) according to warning message I received after compliation and exection.
As a result, it compiles and run normally except that I cannot connect the NUS server with the smartphone application. I got "The device does not have the required service". Screenshot_20180109-153605.jpg
and on nRFConnect application, I only see the Heart Rart Service. Screenshot_20180109-153644.jpg What shall I do to correctly add NUS service?
Thanks for support. Here is the main.c, sdk_config.h and .ld script.