Notifications in Hello Client vs WICED Smart Designer Code

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I have generated a hello_notif app using the WICED smart generator. (Zip File Attached)

I connect to the light blue and this the sequence I follow:

i.     Connect with the device

ii.    Connect to the characteristic (Prop: Read Write Notify and Indicate)

iii.   Inside the characteristic click on listen for notifications (Light Blue) - I do not see the notifications getting activated (The "Listen for notifications" button does not change to stop listening like it does in hello_client example)

iv.   Writing to the characteristic still works fine

STEP 1:

IMG_0149.PNG

STEP 2:

IMG_0150.PNG

STEP 4:

IMG_0151.PNG

SIMILAR STEPS FOLLOWED WITH THE HELLO CLIENT:

STEP 1:

IMG_0153.PNG

STEP 2: (Stop Listening is seen as opposed to Listen for notifications)

IMG_0155.PNG

I have tried to compare both hello_notif(WICED Smart designer generated) and hello_client and haven't understood, what is that that is being done different?

In hello_client.c: hello_client_write_handler function has the 0x002b handle when I click on the listen for notification, but the only handle which the stack registers in hello_notif (code attached) is the vendor characteristic handle for hello_notif characteristic.

Let me know what are the changes that need to be done for similar functionality with the WICED smart designer code.

Message was edited by: Sambhav Galada Updated hello_notif with notification and indication in wiced smart designer client configuration.

0 Likes
1 Solution
Anonymous
Not applicable

Hello sambhav,

You need to look at the GATT Database of the hello_client and compare your hello_notif GATT Database to it.

You need to look at the properties of the characteristics and compare them.

Then you might find the problem.

Remember there are lots of TODO's in the Smart Designer result code.

Thanks

JT

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

Hello sambhav,

Have you tried checking the Client Configuration Permissions?

In your .wic file, it appears to have been left blank.

pastedImage_0.png

Thanks

JT

0 Likes
Anonymous
Not applicable

Hi JT,

I have updated the code.But I still see the same scenario as mentioned above.

0 Likes
Anonymous
Not applicable

Hello sambhav,

You need to look at the GATT Database of the hello_client and compare your hello_notif GATT Database to it.

You need to look at the properties of the characteristics and compare them.

Then you might find the problem.

Remember there are lots of TODO's in the Smart Designer result code.

Thanks

JT

0 Likes