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

How to configure two notifications on central?

Hi,

I used "ble_image_transfer" sample code and can get the all the stuff I want and now I'm implementing the central device for it,

but somehow I always got the "cccd_configure" error when I tried to enable the 2nd notification.

In "ble_image_transfer", one notification is used for image info and configurations, and the other notification is the image's raw data.

The SDK I used is SDK15.2.0 and running on two PCA10056 development kits.

The procedure I did is to,

1. clone "ble_nus_c".

2. add the image characteristic (0x0004).

3. add new handling "its_img_handle" and "its_img_cccd_handle" and related changes in.

4. enable two notifications (tx_notif_enable and img_notif_enable) after discovery completed.

If I only enabled one of the notification, I can receive the data I supposedly to get,

but the problem is that I would like to have two notifications, any idea?

Related