Hi everyone. I am making an application which combines two services (ANCS and Nordic UART). I compare the advertising_init() function from the two provided examples (ble_app_ancs_c and ble_app_uart) and see the difference inside advertising_init function:
In the ble_app_ancs_c example: (1): err_code = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL);
In the ble_app_uart example: (2): err_code = ble_advertising_init(&advdata, &scanrsp, &options, on_adv_evt, NULL); where "scanrsp" variable is declared as ble_advdata_t scanrsp;
Could you please tell me what is difference between them ? when should we choose (1), when should we use like (2). If I combine ANCS and Nordic UART service, which one should I choose ? Thank you very much !