You are here

Problems with custom characteristic notification | Cypress Semiconductor

Problems with custom characteristic notification

Summary: 2 Replies, Latest post by Bratwurst on 08 Jul 2015 10:41 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Bratwurst's picture
11 posts

Hey folks,

I am working on a project where I am using a custom Service which includes 4 custom characteristics.

Everything works fine but I can't get the code to notify the CySmart Programm (on windows).

I wanted it to actualize itself every second, which I am using a timer interrupt for.


So I though I could simply update the Gatt Database calling


and calling

CyBle_GattsNotification(my_connection_handle, (CYBLE_GATTS_HANDLE_VALUE_NTF_T*) &handle_val_pair_adc);

(Notification is enabled in Properties and a Client Characteristic Configuration is existing)

But its not updating itself. Do I have to change something in CySmart?


Thank you guys again for your help! :)

roit's picture
Cypress Employee
221 posts

I am assuming following has already been done:

1) my_connection_handle = cyBle_connHandle

2) You are enabling notification from CySmart Windows by writting a 0x0001 (or in gui, 01:00) to the CCCD of the corresponding characteristic to which you want the notification.

3) the handle_val_pair_adc.attrHandle is equal to the attribute handle on the Characteristic you want to write to. This value can be foung in ble_custom.h


Associated application note for handling custom services/characterisitc is here, in case you want to refer:


- Rohit


Bratwurst's picture
11 posts

Awesome!!! :)


my_connection_handle = cyBle_connHandle was the crux!

Thank you so much!

Log in to post new comments.