Earlier with SDK 13 in custom advertisement I was able to send 30 bytes under unknown characteristics tab in Nrf connect APP but in SDK 15 I am not. Because the firmware or app getting stuck if I sen more than bytes.
Earlier with SDK 13 in custom advertisement I was able to send 30 bytes under unknown characteristics tab in Nrf connect APP but in SDK 15 I am not. Because the firmware or app getting stuck if I sen more than bytes.
If the issue is from the app side then why it is working with SDK 13 ?
It is difficult to say what may cause the issue. I assumed it was on the app side since nus_data_handler wasn't called. Did you put a breakpoint inside the function and check that it never stopped?
If nus_data_handler() isn't called, you can check what is happening on the lower layers. The nus_data_handler() is called in the following manner: ble_nus_on_ble_evt()-->on_write()-->p_nus->data_handler()/nus_data_handler(). Try setting a breakpoint in ble_nus_on_ble_evt() in the case for write. The function ble_nus_on_ble_evt() is declared in components\ble\ble_services\ble_nus\ble_nus.c.
If it doesn't hit that breakpoint, you should check if the data is actually sent. Are you able to get a sniffer trace? Check my answer below for instructions on how to achieve this.
Best regards,
Simon
I don't have an additional nRF5x device to use the nRF Sniffer. Your SDK 13 and earlier were really better than SDK 14 and later. I don't know instead improvising why the coder is getting into the mess with the new SDKs
Could you upload all your code in zipped format, and explain step-by-step how to reproduce your issue?
What is the need of all code? only main file is changed. I haven't touched any of the libraries.