I'm using pc-ble-driver(C program) to get the data from other device, I can get character now, but I don't know how to turn on the character's notification like the start key in nrf connect ,is there any api to turn on it?
I'm using pc-ble-driver(C program) to get the data from other device, I can get character now, but I don't know how to turn on the character's notification like the start key in nrf connect ,is there any api to turn on it?
Hi
You'll have to enable notifications on the central you're connecting your device to in order to get the characteristics. You can check out the ble_nus_c_evt_handler and the notif_enable() function in our ble_app_uart_c example to see how this is done.
Best regards,
Simon
I have enable the notification in central, but when I use the nrf-connect my cccd shows 2902, however ,in pc-ble driver it shows 2803, so I can't change the cccd value in my pc-ble-driver, it returns error
Hi
What error do you get if you try changing the CCCD value? Please provide some more information so I'll be able to help you.
Best regards,
Simon
It returns that no CCCD value find
I need more information in order to be able to help you. Can you upload the log file where you get this error? Does it have an error code?
Best regards,
Simon