Hi Sir,
I add NUS service into CSCS project base on nRF5_SDK_13 follow the steps below, there was no error occurred after build the project, but it didn't work. Please correct me if there is anything I missed or misunderstanding. Thanks.
1' Initialize NUS in the function services_init() in main.c ble_nus_init_t nus_init;
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;
err_code = ble_nus_init(&m_nus, &nus_init);
APP_ERROR_CHECK(err_code);
2' Added the function call below in the function ble_evt_dispatch()
ble_nus_on_ble_evt(&m_nus, p_ble_evt);
3' Change the variable below from 0 to 2 in the function ble_stack_init()
ble_cfg.common_cfg.vs_uuid_cfg.vs_uuid_count