GattC Read Characteristic Value

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

Hello,
I'm building a simple central BLE application, and I read the value of characteristic, with CyBle_GattcReadCharacteristicValue API, the returned value is trimmed to 22 byte length, but the original value (from peripheral) is 24 byte long.

   

The value sent by peripheral is correct because I can read it with Android App, and with CySmart.
Of course is a my mistake, but I can't find where.

   

Attached the project

   

Thanks again for help.

   

Fabrizio

0 Likes
1 Solution
Anonymous
Not applicable

You have to perform (multiple) "read BLOB request". See these parts: https://community.nxp.com/thread/332030  https://community.nxp.com/thread/332031

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

You have to perform (multiple) "read BLOB request". See these parts: https://community.nxp.com/thread/332030  https://community.nxp.com/thread/332031

0 Likes
Anonymous
Not applicable

Thanks you speedycat, your link is very useful.
Now I know why and I'll try some test with  CyBle_GattcReadLongCharacteristicValues API.
My first opinion was to change the MTU parameter (without success). Now my doubts are moving to MTU and it's use. But for now, one step a time.

   

Regards, Fabrizio.

0 Likes