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
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