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

How to change the characteristic property from "notify" to "indicate"?

Hi Sirs:

I am trying to change a characteristic property from "notify" to "indicate".

And the example I used was SDK15-> ble_app_uart.

I have ref these document:

And here is  what I've done so far:


fix tx_char's  property、hvx parameter。
 
-ble_nus.c/tx_char_add()
-ble_nus.c/ble_nus_data_send()
Catch indicate response - print log。

-main.c/ble_evt_handler()
fix  on_connect/on_write =>  check whether the property is notify or not.

-ble_nus.h
-ble_srv_common.c
-ble_nus.c/on_connect()
-ble_nus.c/on_write()
-ble_nus.c/ble_nus_data_send()

I test it with nrf_connect (android app), here is the result:

I could see that the property of tx_char is changed from "notify" to "indicate"

but when I sent data from the UART module, there was no response shown on the phone.

And  the RTT viewer didn't show any error log:

  

Is there any step I missed? Any suggestion will be great!!

Thank you!

Related