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

Adding BLE_NUS service to freertos HRS example - advertising fails

Hi there,

As the title says, i'm tring to add nus service to the freertos example (board PCA10040, SD 132, SDK 12). Actually, I want to mix it with the peripherical app_uart example.

I have to add all ble_nus.c files and functions like the ble_app_uart example, I know it.

But, when I add " {BLE_UUID_BATTERY_SERVICE, BLE_UUID_TYPE_BLE}," to "m_adv_uuids" list, "advertising_init" crash with error "NRF_ERROR_INVALID_LENGTH".

If I change the order of services_int and advertising_int, like I read in some forum, the error changes to "NRF_ERROR_DATA_SIZE"

Help me, please!

Related