Received data length is always same, irrespetive of the leght of the data written

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

cross mob
NiVa_4337911
Level 3
Level 3
First like received

Hi, in _write_handler (peripheral)

len 

= legattdb_getAttrValueLen(p);

is always returns 16, which is the characteristic's length, irrespective of the data being written using the function

bleprofile_sendWriteReq(HANDLE, (UINT8 *)&u8, 1);

form a client, Why?

0 Likes
1 Solution
3 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

What device are you using? What's the version of your SDK?

0 Likes

The Device is CyBLE013025-00, SDK version is 2.2.3

0 Likes

Could you refer to this thread and see if it helps: Characteristic of variable-length write

0 Likes