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.
Where exactly does your example get stuck? Could you try to debug the problem and figure it out? Could you also provide some logs? Also, if you could upload a snippet of the relevant code that would be nice.
Best regards,
Simon
If the issue is from the app side then why it is working with SDK 13 ?
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